I'm nowhere near the status of a PC guru, but most C compilers on dos that
I have seen have some sort of unix compatability library, particularly the
easier stuff to implement.
So try looking for the opendir() family of functions. That will allow you
to read the contents of a directory. PC versions of these functions may
also be extended to give you the file information too, as this information
is in the directory.
If you cant get file information from the readdir() family, see if there
is a stat() function. That would give you the information on the file
including whether it is a directory.
I seem to recall that turbo C 1.5 (years ago) had these functions, you
may be lucky. Look for the header files dirent.h (or dir.h) and stat.h.
Cheers
-- Cameron Hutchison (camh@nospam.orthanc.apana.org.au) | Beware of the clams GCS d--@nospam. -p+ c++(++++) l++ u+ e+ m+(-) s n- h++ f? !g w+ t r+