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.
8 int valid_name_len(const char *name, int maxlength) {
11 for (i = 0; i < maxlength; i++) {
12 if (name[i] == 0) break;
13 if (!VALID_CHAR(name[i])) return 0;
22 int valid_tag_name(const char *name) {
23 return valid_name_len(name, MAX_TAG_LENGTH);
26 int valid_name(const char *name) {
27 return valid_name_len(name, 32);