hello
my question would be if som1 can help out with a better prototype than i have for verifying if input is within ascii alphabetic range
what i have now
int betu (char s[]){
int i, jo=0;
for(i=0;i<strlen(s);++i) {
if(!isalpha (s[i]) && s[i]!=' ' )
return 0;
else
++jo;
}
if(jo==strlen (s))
return 1; }
it gives 1 if sting is letter and space only , 0 if not
i like it because if my project says i musn't accept spaces , i can edit it very easily
however , when verifying a string with non ascii letters like "éíáúűáéóüö" my compiler (vs2010) will give me a kind error , i dont know about TC id be grateful if som1 checked it out tho . i dont need it to accept the non-ascii letters , english alphabet is ok , id be happy if som1 had an idea to make it stop giving an error
other than that it works fine and im very happy with it