GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
|
GIS Library - Check for overwrite. More...
Go to the source code of this file.
Functions | |
int | G_check_overwrite (int argc, char **argv) |
Check for overwrite mode. More... | |
GIS Library - Check for overwrite.
(C) 2001-2008, 2010 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.
Definition in file overwrite.c.
int G_check_overwrite | ( | int | argc, |
char ** | argv | ||
) |
Check for overwrite mode.
Check variables OVERWRITE, GRASS_OVERWRITE and '–o' flag.
The parser G_parser() checks if the map already exists in current mapset, we can switch out the check and do it in the module after the parser.
argc | number of arguments |
argv | array of arguments |
Definition at line 34 of file overwrite.c.
References G_getenv_nofatal(), G_setenv_nogisrc(), and getenv().