fnmatch

Name

fnmatch -- match a filename or a pathname

Description

fnmatch() is as specified in POSIX 1003.1-2008 (ISO/IEC 9945-2009), but with differences as listed below.

Additional flags

In addition to the available values that can be used to form flags, as documented in POSIX 1003.1-2008 (ISO/IEC 9945-2009), this specification permits the following constants.

FNM_CASEFOLD 

If this flag is set, the pattern is matched case-insensitively.

FNM_FILE_NAME 

A synonym for FNM_PATHNAME constant specified in POSIX 1003.1-2008 (ISO/IEC 9945-2009).