legal_dbname.c File Reference

#include <grass/gis.h>
#include <grass/dbmi.h>
#include <grass/glocale.h>

Include dependency graph for legal_dbname.c:

Go to the source code of this file.

Functions

int db_legal_tablename (char *s)
 Check if output is legal table name.


Function Documentation

int db_legal_tablename ( char *  s  ) 

Check if output is legal table name.

Returns:
1 OK

-1 if name does not start with letter A..Za..z or if name does not continue with A..Za..z0..9_@ Rule: [A-Za-z][A-Za-z0-9_@]*

Parameters:
name table name to be checked

Definition at line 17 of file legal_dbname.c.


Generated on Sun Apr 6 17:31:53 2008 for GRASS by  doxygen 1.5.5