Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!husc6!linus!philabs!ttidca!alter From: alter@ttidca.TTI.COM (Steve Alter) Newsgroups: comp.sources.d Subject: PD version of "gmatch"? Message-ID: <3286@ttidca.TTI.COM> Date: 13 Oct 88 08:37:46 GMT Reply-To: alter@ttidca.tti.com (Steve Alter) Organization: Citicorp/TTI, Santa Monica Lines: 31 Can someone point me to a public-domain (or at least legally copyable) version of the "gmatch" routine? Common programs such as "sh", "csh" and "find" use a function called gmatch (csh actually calls it Gmatch) which has a header sort of like this: int gmatch (string, pattern) char *string, *pattern; and the function returns non-zero if the string fits the pattern. The pattern may contain '*', '?', or '[a-z]' style constructs. You've all seen this before; I'm just clarifying this to tell it apart from regular expressions, which are entirely different beasts. I've got a program that currently uses gmatch borrowed from the "find" program and I can't post it to the net until I get a legally copyable version of gmatch into it. Thanks in advance, -- Steve Alter ...!{csun,psivax,pyramid,quad1,rdlvax,retix}!ttidca!alter or alter@tti.com Citicorp/TTI, Santa Monica CA (213) 452-9191 x2541 -- -- Steve Alter ...!{csun,psivax,pyramid,quad1,rdlvax,retix}!ttidca!alter or alter@tti.com Citicorp/TTI, Santa Monica CA (213) 452-9191 x2541