.\" Copyright (c) 1989 The Regents of the University of California.
.\" This code is derived from software contributed to Berkeley by
.\" %sccs.include.redist.man%
.\" @(#)fnmatch.3 5.2 (Berkeley) %G%
fnmatch \- match filename or pathname
int fnmatch(const char *pattern, const char *string, int flags);
matches patterns according to the rules used by the shell.
It checks the string specified by the
argument to see if it matches the pattern specified by the
argument modifies the interpretation of
is the bitwise inclusive OR of any of the following
constants, which are defined in the include file
must be explicitly matched by slashes in
If this flag is not set, then slashes are treated as regular characters.
Every occurrence of a backslash (``\e'') followed by a character in
is replaced by that character.
This is done to negate any special meaning for the character.
matches the pattern specified by
sh(1), glob(3), wordexp(3), regexp(3)
Quotes and slashes in range patterns are not handled correctly.
The pattern ``*'' matches the empty string, even if