GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
GIS Library - Functions to handle file name legality. More...
#include <stdio.h>
#include <string.h>
#include <grass/gis.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
int | G_legal_filename (const char *s) |
Check for legal database file name. More... | |
int | G_check_input_output_name (const char *input, const char *output, int error) |
Check input and output file names. More... | |
GIS Library - Functions to handle file name legality.
(C) 2001-2008 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_name.c.
Check input and output file names.
Check: 1) output is legal map name, 2) if can find input map, and 3) if input was found in current mapset, check if input != output.
[in] | input | name |
[out] | output | name |
[in] | error | error type: GR_FATAL_EXIT, GR_FATAL_PRINT, GR_FATAL_RETURN |
Definition at line 68 of file legal_name.c.
References G__name_is_fully_qualified(), G_fatal_error(), G_find_cell2(), G_legal_filename(), G_mapset(), G_warning(), and NULL.
int G_legal_filename | ( | const char * | s | ) |
Check for legal database file name.
Legal file names will not begin with '.' or NULL and must not contain the characters, ' ' (space), '/', '"'. '\'' (single quote), '@', ',', '=', '*', and all other non-alphanumeric characters within.
[in] | s | file name to check |
Definition at line 36 of file legal_name.c.
References dialogs::s.
Referenced by G_check_input_output_name(), and main().