test to see if a character is a letter
#include <ctype.h> int isalpha( int c );
The isalpha() function tests if the argument c is an alphabetic character ('a' to 'z' and 'A' to 'Z'). An alphabetic character is any character for which isupper() or islower() is true.
The isalpha() returns zero if the argument is not an alphabetic character; otherwise, a non-zero value is returned.
isalnum(), iscntrl(), isdigit(), isgraph(), islower(), isprint(), ispunct(), isspace(), isupper(), isxdigit(), tolower(), toupper()
#include <stdio.h> #include <ctype.h> void main() { if( isalpha( getchar() ) ) { printf( "is alphabetic\n" ); } }
ANSI
All (except DOS/PM)