int
pmatch(const char *string, const char *pattern, const char **estr)
pattern
from
string.
If not
NULL,
estr
points to the end of the longest exact or substring match.
pmatch()
uses the following metacharacters:
?*[-'.
The range definition has to end with a
`]'.
A
`^'
following the
`['
will negate the range.
)
will return 2 for an exact match, 1 for a substring match, 0 for no match and
-1 if an error occurs.