home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Source / GNU / uucp / Uucp.framework / unix.subproj / isdir.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-09  |  278 b   |  19 lines

  1. /* isdir.c
  2.    See whether a file exists and is a directory.  */
  3.  
  4. #include "uucp.h"
  5.  
  6. #include "system.h"
  7. #include "sysdep.h"
  8.  
  9. boolean
  10. fsysdep_directory (z)
  11.      const char *z;
  12. {
  13.   struct stat s;
  14.  
  15.   if (stat ((char *) z, &s) < 0)
  16.     return FALSE;
  17.   return S_ISDIR (s.st_mode);
  18. }
  19.