is.c File Reference
GIS Library - Tests for file existence.
More...
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <grass/gis.h>
Go to the source code of this file.
|
Functions |
int | G_is_gisbase (const char *path) |
| Test if specified directory is GISBASE.
|
int | G_is_location (const char *path) |
| Test if specified directory is location.
|
int | G_is_mapset (const char *path) |
| Test if specified directory is mapset.
|
Detailed Description
GIS Library - Tests for file existence.
(C) 2001-2008 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.
- Author:
- GRASS GIS Development Team
- Date:
- 2001-2008
Definition in file is.c.
Function Documentation
int G_is_gisbase |
( |
const char * |
path |
) |
|
Test if specified directory is GISBASE.
- Parameters:
-
[in] | path | Path to directory |
- Returns:
- 1 The directory is GISBASE
0 The directory is not GISBASE
Definition at line 53 of file is.c.
int G_is_location |
( |
const char * |
path |
) |
|
Test if specified directory is location.
- Parameters:
-
[in] | path | Path to directory |
- Returns:
- 1 The directory is location
0 The directory is not location
Definition at line 67 of file is.c.
int G_is_mapset |
( |
const char * |
path |
) |
|
Test if specified directory is mapset.
- Parameters:
-
[in] | path | Path to directory |
- Returns:
- 1 The directory is mapset
0 The directory is not mapset
Definition at line 81 of file is.c.