This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: directories for newbies
Hey Now Rupert,
Thanks for the stat function. U referred to section 1 & 2. What book is
this?
Thanks
Danny
Rupert Wood wrote:
> Danny wrote:
>
> > I'm look for a function to get me the attributes of a file. Such as is
> > the file a directory or not. Any ideas?
>
> Stat(); test for the S_IFDIR bit set in st_mode. See the manual pages
> for stat and the mknod function (in section 2 - not the mknod utility in
> section 1).
>
> Rup.