GRASS Programmer's Manual
6.4.3(2013)-r
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Macros
Pages
isdir.c
Go to the documentation of this file.
1
#include <grass/dbmi.h>
2
#include <unistd.h>
3
#include <sys/types.h>
4
#include <sys/stat.h>
5
12
int
db_isdir
(
const
char
*path)
13
{
14
struct
stat
x;
15
16
if
(
stat
(path, &x) != 0)
17
return
DB_FAILED;
18
return
(S_ISDIR(x.st_mode) ? DB_OK : DB_FAILED);
19
}
stat
int stat
Definition:
g3dcolor.c:369
db_isdir
int db_isdir(const char *path)
Definition:
isdir.c:12
lib
db
dbmi_base
isdir.c
Generated on Mon Dec 16 2013 12:20:00 for GRASS Programmer's Manual by
1.8.5