The function isalpha() and other character classification functions from ctype.h return a non-zero value if the condition being tested is true, and zero otherwise.
You'll also want to cast the argument passed to any of the to* and is* functions in <ctype.h> to unsigned char.
Even though they all accept an int, the C standard requires that the argument be in the range of 0 to UCHAR_MAX or EOF for the behavior to be defined.
Russ
bobbitts@hotmail.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.