This documentation is under development!

globmatch

globmatch#

Match a string against a simple pattern.

Match string ‘s’ against glob pattern ‘pattern’ and return zero on match.

Understands the following patterns:

 *       any number of characters
 ?       any single character
 [a-z]   any single character in the range a-z
 [^a-z]  any single character not in the range a-z
 \x      match x

Functions

int globmatch(const char *pattern, const char *s)#