1 2 3 4 5 6
#include <ctype.h> inline int isalpha(int c) { return (c>='a' && c<='z') || (c>='A' && c<='Z'); }