GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-6fb030f8d8
isdir.c File Reference

DBMI Library (base) - test for directories. More...

#include <grass/config.h>
#include <grass/dbmi.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
Include dependency graph for isdir.c:

Go to the source code of this file.


int db_isdir (const char *path)
 Test if path is a directory. More...

Detailed Description

DBMI Library (base) - test for directories.

(C) 1999-2009, 2011 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Joel Jones (CERL/UIUC), Radim Blazek
Doxygenized by Martin Landa <landa.martin> (2011)

Definition in file isdir.c.

Function Documentation

◆ db_isdir()

int db_isdir ( const char *  path)

Test if path is a directory.

DB_OK on success
DB_FAILED on failure

Definition at line 29 of file isdir.c.

References DB_FAILED, DB_OK, and x.