The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
fnmatch.h File Reference

shell patterns ("*.c", "[a-z]?"): fnmatch is musl's (see src/libc/src/regex/README.md). More...

Go to the source code of this file.

Macros

#define FNM_PATHNAME   0x01
#define FNM_NOESCAPE   0x02
#define FNM_PERIOD   0x04
#define FNM_LEADING_DIR   0x08
#define FNM_CASEFOLD   0x10
#define FNM_FILE_NAME   FNM_PATHNAME
#define FNM_NOMATCH   1
#define FNM_NOSYS   (-1)

Functions

int fnmatch (const char *pattern, const char *name, int flags)
 0 when name matches pattern, FNM_NOMATCH when it does not

Detailed Description

shell patterns ("*.c", "[a-z]?"): fnmatch is musl's (see src/libc/src/regex/README.md).

Macro Definition Documentation

◆ FNM_PATHNAME

#define FNM_PATHNAME   0x01

◆ FNM_NOESCAPE

#define FNM_NOESCAPE   0x02

◆ FNM_PERIOD

#define FNM_PERIOD   0x04

◆ FNM_LEADING_DIR

#define FNM_LEADING_DIR   0x08

◆ FNM_CASEFOLD

#define FNM_CASEFOLD   0x10

◆ FNM_FILE_NAME

#define FNM_FILE_NAME   FNM_PATHNAME

◆ FNM_NOMATCH

#define FNM_NOMATCH   1

◆ FNM_NOSYS

#define FNM_NOSYS   (-1)

Function Documentation

◆ fnmatch()

int fnmatch ( const char * pattern,
const char * name,
int flags )

0 when name matches pattern, FNM_NOMATCH when it does not