65816-llvm-mos/runtime/include/fnmatch.h
Scott Duensing da095402ec Updated
2026-06-02 23:17:57 -05:00

27 lines
663 B
C

// fnmatch.h — POSIX glob-style pattern match.
//
// fnmatch(pattern, string, flags) returns 0 on a match, FNM_NOMATCH
// (1) when the pattern does not match the string. The implementation
// supports `*`, `?`, `[abc]`, `[a-z]`, `[!abc]` / `[^abc]`, and
// backslash escape (unless FNM_NOESCAPE is set). See libc.c for the
// match engine.
#ifndef _FNMATCH_H
#define _FNMATCH_H
#ifdef __cplusplus
extern "C" {
#endif
#define FNM_NOMATCH 1
#define FNM_NOESCAPE 0x01
#define FNM_PATHNAME 0x02
#define FNM_PERIOD 0x04
#define FNM_CASEFOLD 0x10
int fnmatch(const char *pattern, const char *string, int flags);
#ifdef __cplusplus
}
#endif
#endif