Wanted: string matching routine

Richard A. O'Keefe ok at goanna.cs.rmit.oz.au
Thu Jun 27 17:18:12 AEST 1991


In article <2868E3EF.6133 at ics.uci.edu>, vahid at vesta.ics.uci.edu (Frank Vahid) writes:
> 
> Does anyone have a routine which is similar to strcmp, but permits
> unix-type wildcard characters in at least one of the strings?
> For example, strmatch("abc*", "abcdefg") would return a value denoting
> a successful match.

If you want UNIX-style wildcards, you may be using a UNIX system.
In that case, try 'man regex' or 'man regexp'.
Or look at Kernighan & Plauger "Software Tools" and turn their stuff
back from Ratfor to C.

-- 
I agree with Jim Giles about many of the deficiencies of present UNIX.



More information about the Comp.lang.c mailing list