Fmatch

From SA-MP Wiki

Jump to: navigation, search

fmatch

Image:Farm-Fresh text lowercase.png Note: This function name starts with a lowercase letter.


Image:32px-Circle-style-warning.png

Warning

This function does not work in the current SA:MP version!


Description:

Find a filename matching a pattern.


Parameters:
(name[], const pattern[], index = 0, size = sizeof name)
nameThe string to hold the result in, returned as a packed string.
const patternThe pattern that should be matched. May contain wildcards.
indexThe number of the file, in case there are multiple matches.
sizeThe maximum size of parameter name


Return Values:

true on success, false on failure


Related Functions

The following functions may be useful, as they are related to this function in one way or another.


  • ftemp: Create a temporary file stream.
  • fgetchar: Get a character from a file.
  • fseek: Jump to a specific character in a file.
  • fexist: Check, if a file exists.
  • fmatch: Check, if patterns with a file name matches.
Personal tools
Navigation
Toolbox