wildcard matching

Karl Heuer karl at ima.isc.com
Sat Jan 5 05:13:33 AEST 1991


Ins <584 at cadlab.sublink.ORG> staff at cadlab.sublink.ORG (Alex Martelli) writes:
>One more reson to do wildmatch() right, then!

But first, check whether it needs to be done at all; and if so, implement it
using the standard interface.  Many libraries, and at least one influential
standard, already contain "int gmatch(char *str, char *pat)".  It handles not
only "*" and "?" but also "[xyz]" and "[!xyz]" (yes, that's a bang, not a
circumflex; glob vs regexp strikes again).

Karl W. Z. Heuer (karl at ima.isc.com or uunet!ima!karl), The Walking Lint



More information about the Comp.lang.c mailing list