[SDL] Re: platform independent directory access
ben.campbell at cyberlife.co.uk
Tue Jun 27 06:07:48 PDT 2000
"A. Umbach" wrote:
> I'm looking for a cross-platform way do to opendir(3) and readdir(3).
> This is POSIX, but of course windows wouldn't let me #include <dirent.h>
> If this something that has to be done differently for each platform?
> If so, that would be a nice opportunity to write a SDL_io library.
For C++, the Boost project (http://www.boost.org) seems to have a nicely
designed library for crossplatform directory handling (at least for
win32 and posix systems).
For C... I'm not sure. Bound to be something out there already :-)
Win32 and posix directory calls map to each other _reasonably_ well, so
a wrapper shouldn't be too hard. Not sure about directory stuff on MacOS
Ben Campbell (Antipodean Straggler)
Programmer, Creature Labs
ben.campbell at creaturelabs.com
More information about the SDL