isdir.c

Go to the documentation of this file.
00001 #include <grass/dbmi.h>
00002 #include <sys/types.h>
00003 #include <sys/stat.h>
00004 
00011 int
00012 db_isdir  (char *path)
00013 
00014 {
00015     struct stat x;
00016 
00017     if (stat(path, &x) != 0)
00018         return DB_FAILED;
00019     return ( S_ISDIR (x.st_mode) ? DB_OK : DB_FAILED);
00020 }

Generated on Sun Apr 6 17:31:38 2008 for GRASS by  doxygen 1.5.5