#include <fnmatch.h>
fnmatch.h
9 macros · 1 function
#define FNM_NOMATCH 1
Match failed.
#define FNM_NOESCAPE 0x01
Disable backslash escaping.
#define FNM_PATHNAME 0x02
Slash must be matched by slash.
#define FNM_PERIOD 0x04
Period must be matched by period.
#define FNM_NOSYS (-1)
Reserved.
#define FNM_LEADING_DIR 0x08
Ignore /<tail> after Imatch.
#define FNM_CASEFOLD 0x10
Case insensitive search.
__DARWIN_ALIAS(fnmatch)
int fnmatch(const char *, const char *, int)
man page · April 7, 2025
fnmatch(3) — test whether a filename or pathname matches a shell-style pattern