| Red Hat Documentation: man pages: man3: Linux Programmer's Manual (3) |
FNMATCHSection: Linux Programmer's Manual (3)Updated: 17 April 2025 Index NAMEfnmatch - match filename or pathnameSYNOPSIS#include <fnmatch.h> int fnmatch(const char *pattern, const char *string, int flags); DESCRIPTIONThe fnmatch() function checks whether the string argument matches the pattern argument, which is a shell wildcard pattern.The flags argument modifies the behaviour; it is the bitwise OR of zero or more of the following flags:
RETURN VALUEZero if string matches pattern, FNM_NOMATCH if there is no match or another non-zero value if there is an error.CONFORMING TOISO/IEC 9945-2: 1993 (POSIX.2). The FNM_FILE_NAME, FNM_LEADING_DIR, and FNM_CASEFOLD flags are GNU extensions.SEE ALSO
IndexThis document was created by using the manual pages. Time: 11:58:03 GMT, March 24, 2025 |
|
© 2001 Red Hat, Inc. All rights reserved. About Red Hat : Legal statement : Privacy statement : Y2K statement : Contact Red Hat |