#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <grass/gis.h>
Go to the source code of this file.
Functions | |
int | G_remove (char *element, char *name) |
remove a database file |
int G_remove | ( | char * | element, | |
char * | name | |||
) |
remove a database file
The file or directory name under the database element directory in the current mapset is removed. Returns 1 if successful, 0 if name does not exist, and -1 if there was an error. Note. If name is a directory, everything within the directory is removed as well.
element | ||
name |
Definition at line 45 of file remove.c.
References G__file_name(), G__name_is_fully_qualified(), G_legal_filename(), and G_mapset().
Referenced by G__quant_export(), G__remove_fp_range(), G_remove_colr(), G_remove_grid3_timestamp(), G_remove_histogram(), G_remove_raster_timestamp(), G_remove_vector_timestamp(), G_write_colors(), G_write_fp_range(), and G_write_range().