ansi c and directories

Doug Gwyn gwyn at smoke.BRL.MIL
Tue Dec 5 16:30:50 AEST 1989


In article <7193 at ficc.uu.net> peter at ficc.uu.net (Peter da Silva) writes:
>In any system for which files have names, there is at least one directory.

Not necessarily one that could be opened by name.

>Thus a routine that returns the names of files in at least the current
>directory is more generally portable than system().

The concept of "current directory" is also not portable.

>And, as you pointed out, system() is in the standard.

system() was in the library Base Document; the dirent stuff wasn't.



More information about the Comp.lang.c mailing list