Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Thursday, June 13, 2019
 
 

fnmatch.h(3HEAD)

Name

fnmatch.h, fnmatch - filename-matching types

Synopsis

#include <fnmatch.h>

Description

The fnmatch.h header defines the following constants:

FNM_NOMATCH

The string does not match the specified pattern.

FNM_PATHNAME

Slash in string only matches slash in pattern.

FNM_FILE_NAME

An alias of FNM_PATHNAME.

FNM_PERIOD

Leading period in string must be exactly matched by period in pattern.

FNM_NOESCAPE

Disable backslash escaping.

FNM_IGNORECASE

Ignore case when making comparisons.

FNM_CASEFOLD

An alias of FNM_IGNORECASE.

FNM_LEADING_DIR

Match pattern as leading directory path.

FNM_NOSYS

Reserved.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
Standard

See Also

fnmatch(3C), attributes(7), standards(7)