65816-llvm-mos/runtime/include/fnmatch.h
2026-10-13 13:58:56 -05:00

31 lines
867 B
C

// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
// 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