|
From: PhrostByte <Phr...@so...> - 2002-09-13 15:09:43
|
Okay, I'm new to directories in C - I just found out how to open/list them basically. I looked in the glibc manual (a lifesaver, that is!!) and came across S_ISDIR() but that doesn't seem to work for me. I'm trying to tell the difference between folder and file so I don't crash by fopen()ing a folder. Can somebody please help? Thanks in advance |