| PMATCH(9) | Kernel Developer's Manual | PMATCH(9) |
pmatch — performs
pattern matching on strings
#include
<sys/systm.h>
int
pmatch(const
char *string, const char
*pattern, const char
**estr);
Extract substring matching pattern from
string. If not 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 11.0 |