Mail Archives: djgpp-workers/1999/02/17/17:23:16
>> 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).
(Looking for an opinion)
Would it be better then, just to have the user do something like
dir *.GIF > files
or
ls *.GIF > files
Just wondering.
Tom
+--------------------------------------------------------------------------+
| The coolest site for free home pages, email, chat, e-cards, movie info.. |
| http://www.goplay.com - it's time to Go Play! |
+--------------------------------------------------------------------------+
- Raw text -