get the file directory

Doug Gwyn gwyn at smoke.BRL.MIL
Thu Nov 16 05:46:53 AEST 1989


In article <1724 at unccvax.UUCP> cs00wsc at unccvax.UUCP (Shiang Chin) writes:
>... I don't know what's wrong on my code.

The main thing wrong is that you're attempting to read a directory
as though it were an ordinary data file.  These days, that's a poor
assumption, and you should always use the portable <dirent.h>
interface to read directories.



More information about the Comp.lang.c mailing list