19 #include <grass/gis.h>
44 overwrite = atoi(overstr);
48 if (!overwrite && (overstr =
getenv(
"GRASS_OVERWRITE"))) {
49 overwrite = atoi(overstr);
56 for (i = 0; i < argc; i++) {
57 if (strcmp(argv[i],
"--o") == 0 ||
58 strcmp(argv[i],
"--overwrite") == 0) {
char * G__getenv(const char *name)
Get environment variable.
int G_check_overwrite(int argc, char **argv)
Check for overwrite mode.
int G__setenv(const char *name, const char *value)
Set environment name to value.