1 #define VALID_CHAR(x) (x == ' ' || x == '\'' || x == '-' || x == '.' || (x >= '0' && x <= '9') || (x >= 'A' && x <= 'Z') || x == '_' || (x >= 'a' && x <= 'z'))
3 int valid_name(const char *name) {
6 for (i = 0; i < 32; i++) {
7 if (name[i] == 0) break;
8 if (!VALID_CHAR(name[i])) return 0;