is.c File Reference

#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <grass/gis.h>

Include dependency graph for is.c:

Go to the source code of this file.

Functions

int test_path_file (const char *path, const char *file)
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.


Function Documentation

int G_is_gisbase ( const char *  path  ) 

Test if specified directory is GISBASE.

Parameters:
path Path to directory
Returns:
1 The directory is GISBASE

0 The directory is not GISBASE

Definition at line 28 of file is.c.

References test_path_file().

int G_is_location ( const char *  path  ) 

Test if specified directory is location.

Parameters:
path Path to directory
Returns:
1 The directory is location

0 The directory is not location

Definition at line 39 of file is.c.

References test_path_file().

int G_is_mapset ( const char *  path  ) 

Test if specified directory is mapset.

Parameters:
path Path to directory
Returns:
1 The directory is mapset

0 The directory is not mapset

Definition at line 50 of file is.c.

References test_path_file().

int test_path_file ( const char *  path,
const char *  file 
)

Definition at line 6 of file is.c.

References G_free(), and G_malloc().

Referenced by G_is_gisbase(), G_is_location(), and G_is_mapset().


Generated on Sun Apr 6 17:32:21 2008 for GRASS by  doxygen 1.5.5