fnmatch.h
Overview
Related Modules:
Description:
Provides a function for checking whether a specified string matches a string that contains wildcards.
Since:
1.0
Version:
1.0
Summary
Macros
FNM_PATHNAME 0x1 |
If this flag is set, a slash (/) in string can be matched by a slash (/) in pattern, but not by an asterisk (), or a question mark (?), or a bracket expression ([]) containing a slash. |
FNM_NOESCAPE 0x2 |
If this flag is set, the backslash () is treated as an ordinary character, instead of an escape character. |
FNM_PERIOD 0x4 |
If this flag is set, a leading period (.) in string can be exactly matched by the period (.) in pattern. A period is considered to be leading if it is the first character in string, or if both FNM_PATHNAME is set and the period immediately follows a slash. |
FNM_LEADING_DIR 0x8 |
If this flag is set, a trailing sequence of characters starting with a slash (/) is ignored in string. For example, if this flag is set, either foo or foobar as a pattern would match the string foobar/frobozz. |
FNM_CASEFOLD 0x10 |
If this flag is set, the pattern is matched case-insensitively. |
The definition is similar to that of FNM_PATHNAME. |
|
FNM_NOSYS (-1) |
Functions
fnmatch (const char pattern, const char string, int flags) |