Hi.
How come when I use readdir() to read each file in a directory the d_type field is
always NULL? Isn't it supposed to be different for different file types?
Also is there a better way then using stat() to find out each file type (directory, regular file, etc.) from a C program?
Thanks