I want to check if a string to make sure that it only consists of spaces, letters, and numbers. I did something like this:
But a space would mean isalpha returns FALSE. Is there another function to use?
for ( let = argument; *let != '\0'; let++ )
{
if ( !isalpha(*let) )
{
send_to_char( "The clan name must only have letters in it.\n\r", ch );
return;
}
}But a space would mean isalpha returns FALSE. Is there another function to use?