35 if (*s ==
'.' || *s == 0) {
37 _(
"Illegal table map name <%s>. May not contain '.' or 'NULL'."),
43 if (!((*s >=
'A' && *s <=
'Z') || (*s >=
'a' && *s <=
'z'))) {
44 G_warning(
_(
"Illegal table map name <%s>. Must start with a letter."),
50 if (!((*s >=
'A' && *s <=
'Z') || (*s >=
'a' && *s <=
'z') ||
51 (*s >=
'0' && *s <=
'9') || *s ==
'_' || *s ==
'@')) {
53 _(
"Illegal table map name <%s>. Character <%c> not allowed."),
Main header of GRASS DataBase Management Interface.
void G_warning(const char *,...) __attribute__((format(printf
int db_legal_tablename(const char *s)
Check if output is legal table name.