www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/12/18:01:29

From: ams AT ludd DOT luth DOT se (Martin Str|mberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Portable way to examine a directory?
Date: 12 Jul 1998 13:45:34 GMT
Organization: University of Lulea, Sweden
Lines: 18
Message-ID: <6oaelu$3pb$4@news.luth.se>
References: <HZwMmCA8w5p1Ew0U AT lwithers DOT demon DOT co DOT uk>
NNTP-Posting-Host: my21.sm.luth.se
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


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