Date: Wed, 17 Feb 1999 15:46:29 -0500 Message-Id: <199902172046.PAA17766@envy.delorie.com> From: DJ Delorie To: djgpp-workers AT delorie DOT com In-reply-to: <36381280.5.28477@mx1-12.onmedia.com> (tomstdenis@goplay.com) Subject: Re: find_first References: <36381280 DOT 5 DOT 28477 AT mx1-12 DOT onmedia DOT com> Reply-To: djgpp-workers AT delorie DOT com > What is the ANSI C equivelant of 'find_first()' for finding files that > match a pattern. I am writing a tool (in DJGPP) which must run in > ms-dos and unix platforms. There is no exact equivalent. You'd have to use opendir/readdir/closedir and a separate pattern match like regex, none of which are ANSI (posix specifies them).