3 * - By John Hodge (thePowersGang)
11 static inline int isalpha(int ch) {
12 if('A'<=ch&&ch<='Z') return 1;
13 if('a'<=ch&&ch<='z') return 1;
16 static inline int isdigit(int ch) {
17 if('0'<=ch&&ch<='9') return 1;
21 static inline int isalnum(int ch) {
22 return isalpha(ch) || isdigit(ch);
25 static inline int toupper(int ch) {
26 if('a'<=ch && ch <='z')
27 return ch - 'a' + 'A';
31 static inline int isspace(int ch) {
32 if(ch == ' ') return 1;
33 if(ch == '\t') return 1;
34 if(ch == '\r') return 1;
35 if(ch == '\n') return 1;