Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site unisoft.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!ihnp4!zehntel!hplabs!hpda!fortune!amdcad!amd!dual!unisoft!fnf From: fnf@unisoft.UUCP (Fred Fish) Newsgroups: net.lang.c Subject: Re: Pattern recognition in C (wanted) Message-ID: <396@unisoft.UUCP> Date: Sun, 20-Jan-85 21:09:31 EST Article-I.D.: unisoft.396 Posted: Sun Jan 20 21:09:31 1985 Date-Received: Wed, 23-Jan-85 07:39:37 EST Organization: UniSoft Corp., Berkeley Lines: 18 [--------------] A recent posting to net.lang.c of a "shell style" pattern matching routine by Gary Moss appeared to be incomplete so I decided to post an alternate. This posting also contains my version (nmatch.c) and Gary's two routines (match.c and matchtest.c) for the benefit of those who might have missed the original posting since it wasn't in net.sources. By the way, it appears that the usage message for matchtest is wrong. It apparently wants the arguments [string pattern] rather than [pattern string]. I'm sure there are many ways to do this, and probably some that are far more compact than my solution. I would love to see some alternate versions (that I can understand that is :-). [---- see net.sources for actual posting ----]