I have use the below to validate my alphabets but it seem it does not work when i input 1234abc, it will accept it into my files. Anything i do wrong? I require to validate all the character to be alphabets, btw if all them njumbers, they will not be accepted as planned.
char val_str(char text)
while (text[x] != '\0')
if (toupper(isalpha (text[x]) ==0))
status = 'N';