how do i use the S_IS* macros? i want to check files to see if they really
are files or directories... all it says is
S_ISREG(m) regular file?
what's m? i've tried stating a filename, then doing:
if (S_ISREG(buf.st_rdev)) /* st_rdev seemed the most sensible */
printf ("File\n")
else
printf ("Not File\n");
but it always prints "Not File" instead of "File", even with proper files.
--
+++ Divide By Cucumber Error, Please Re-Install Universe And Reboot +++
[EMAIL PROTECTED] http://x-map.home.ml.org
