35 snprintf(buf,
sizeof(buf),
"%s", s);
37 if (*s ==
'.' || *s == 0) {
39 _(
"Illegal table map name <%s>. May not contain '.' or 'NULL'."),
45 if (!((*s >=
'A' && *s <=
'Z') || (*s >=
'a' && *s <=
'z'))) {
46 G_warning(
_(
"Illegal table map name <%s>. Must start with a letter."),
52 if (!((*s >=
'A' && *s <=
'Z') || (*s >=
'a' && *s <=
'z') ||
53 (*s >=
'0' && *s <=
'9') || *s ==
'_' || *s ==
'@')) {
55 _(
"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.