JM> I am looking for some ANSI C code that will allow me to get all the files
JM> in a directory that match a certain wildcard.
JM> It has to be portable.
Directories are not something that are in the ISO C standard, so
you can't do it portably. It is part of Posix though, and you
will find some posix routines in snippets. However, Posix is not
all that common. So I use trav(). What I should do is add the
posix traversal stuff to trav() (in OZPD). However, you may like
to do that and send me the changed code? BFN. Paul.
@EOT:
---
* Origin: X (3:711/934.9)
|