Mail Archives: djgpp-workers/1999/02/18/03:10:36
On Wed, 17 Feb 1999, Tom St Denis wrote:
> 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'd suggest to use `glob'. It is Posix, and returns all the files
which match a pattern in a single call. However, if by ``ms-dos'' you
mean something other than DJGPP only, then you need to know that other
DOS compilers don't have `glob'.
Also note that the semantics of the file wildcards is different on DOS
and Unix. For example, "*.*" will yield different results.
> (btw, I don't get news group access here right now, so I can't use
> c.o.m.d)
You can write to the email gateway, djgpp AT delorie DOT com.
- Raw text -