Bfile Name MatchMask

From WikiPrizm
Jump to: navigation, search


Synopsis

Header: fxcg/file.h
Syscall index: 0x1DDA
Function signature: int Bfile_Name_MatchMask(const short* mask, const short* filename)

Checks whether a certain filename matches the mask provided. Useful for filtering files, after using a less restrictive filter with Bfile_FindFirst and related syscalls.

Parameters

  • const short* mask - Pointer to a 16 bit string the filename will be matched against.
  • const short* filename - Pointer to a 16 bit string containing the filename to match.

Returns

1 if filename matches the mask, or 0 if not.