1 /* Blerg is (C) 2011 The Dominion of Awesome, and is distributed under a
2 * BSD-style license. Please see the COPYING file for details.
5 #define VALID_CHAR(x) (x == ' ' || x == '\'' || x == '-' || x == '.' || (x >= '0' && x <= '9') || (x >= 'A' && x <= 'Z') || x == '_' || (x >= 'a' && x <= 'z'))
7 int valid_name(const char *name) {
10 for (i = 0; i < 32; i++) {
11 if (name[i] == 0) break;
12 if (!VALID_CHAR(name[i])) return 0;