Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!uunet!munnari.oz.au!goanna!ok From: ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe) Newsgroups: comp.lang.c Subject: Re: Wanted: string matching routine Message-ID: <6534@goanna.cs.rmit.oz.au> Date: 27 Jun 91 07:18:12 GMT Article-I.D.: goanna.6534 References: <2868E3EF.6133@ics.uci.edu> Organization: Comp Sci, RMIT, Melbourne, Australia Lines: 14 In article <2868E3EF.6133@ics.uci.edu>, vahid@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.