int check_name_alphabet(const char* str)
{
const char* tmp;
if (!str || !*str)
return 0;
if (strlen(str) < 2)
return 0;
for (tmp = str; *tmp; ++tmp)
{
if (isdigit(tmp) || isalpha(tmp))
continue;
//#ifdef USE_SPECIAL_CHARACTERS
switch (*tmp)
{
case ' ':
case '.':
case '-':
case '_':
case '@':
case '!':
case '^':
case '#':
case '$':
case '%':
case '&':
case '*':
case '(':
case ')':
continue;
}
//#endif
return 0;
}
return check_name_independent(str);
}