www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/02/17/23:38:38

Message-Id: <199902180438.EAA16396@out1.ibm.net>
From: "Mark E." <snowball3 AT usa DOT net>
To: djgpp-workers AT delorie DOT com
Date: Wed, 17 Feb 1999 23:38:41 -0500
MIME-Version: 1.0
Subject: Re: find_first
In-reply-to: <f705a010.36cb68fa@aol.com>
X-mailer: Pegasus Mail for Win32 (v3.01d)
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.
> >
> 
> I, too, am working on such a utility.  But, I am not stuck with ANSI C. At

How about fnmatch? It's not ANSI but it is POSIX, and it accepts a 
pattern. In combination with the opendir functions, it may be what you're 
looking for. Check libc.info for details.

Mark
  


--- 
Mark Elbrecht snowball3 AT usa DOT net
http://members.xoom.com/snowball3/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019