List a directory in a C program on Unix machines
Dave Ciemiewicz
ciemo at bananaPC.wpd.sgi.com
Sat Aug 11 08:29:41 AEST 1990
In article <1990Aug10.154506.846 at caen.engin.umich.edu>,
cys at caen.engin.umich.edu writes:
>
> Hello everyone,
> I am currently writing a C program on Unix machines. What I want to
> do is to store the file names in a directory into a character array.
> So I can do something to those files. I want to use Unix system calls
> to handle it. Could anyone help me out with that?
> Thanks in advance.
>
> --Jim
> hev7 at ub.cc.umich.edu
Try readdir(). See the readdir(3) manual page.
--- Ciemo
More information about the Comp.sys.sgi
mailing list