Mail Archives: djgpp/1998/07/12/18:01:29
Laurence Withers (lwithers AT lwithers DOT demon DOT co DOT uk) wrote:
: I'm working on a project which needs to examine a directory.
: Specifically, I have the directory name and I want to search for all
: files ending *.olf, and I also want to search for all subdirectories.
:
: Using C++, I can do this in DOS and with Allegro (foreachfile() or
: whatever it is), but neither method is portable. I would like to port
: the project to many platforms.
:
: Is there any standard way of doing this that DJGPP supports, or am I
: better off leaving this piece of code to be implementation specific?
Look at opendir() and friends. I think they are POSIX compliant.
Lisa Gerrard, The Mirror Pool,
MartinS
- Raw text -