GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
|
Vector library - Check if map name is legal vector map name. More...
Go to the source code of this file.
Functions | |
int | Vect_legal_filename (const char *s) |
Check if output is legal vector name. More... | |
int | Vect_check_input_output_name (const char *input, const char *output, int error) |
Check for input and output vector map name. More... | |
Vector library - Check if map name is legal vector map name.
(C) 2001-2009 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 legal_vname.c.
int Vect_check_input_output_name | ( | const char * | input, |
const char * | output, | ||
int | error | ||
) |
Check for input and output vector map name.
Check
input | input name |
output | output name |
error | error type G_FATAL_EXIT, G_FATAL_PRINT, G_FATAL_RETURN |
Definition at line 93 of file legal_vname.c.
int Vect_legal_filename | ( | const char * | s | ) |
Check if output is legal vector name.
Rule: [A-Za-z][A-Za-z0-9_]*
Check also for SQL keywords.
s | filename to be checked |
Definition at line 32 of file legal_vname.c.
Referenced by Vect_copy().