| PMATCH(9) | Kernel Developer's Manual | PMATCH(9) |
pmatch —
#include <sys/systm.h>
int
pmatch(const
char *string, const char
*pattern, const char
**estr);
NULL,
estr points to the end of the longest exact or substring
match.
pmatch() uses the following
metacharacters:
pmatch() will return 2 for an exact match, 1 for a
substring match, 0 for no match and -1 if an error occurs.
| October 12, 2003 | NetBSD 9.4 |