3 * - By John Hodge (thePowersGang)
12 if('A'<=ch&&ch<='Z') return 1;
13 if('a'<=ch&&ch<='z') return 1;
17 if('0'<=ch&&ch<='9') return 1;
22 return isalpha(ch) || isdigit(ch);
25 int isxdigit(int ch) {
26 if('0'<=ch&&ch<='9') return 1;
27 if('a'<=ch&&ch<='f') return 1;
28 if('F'<=ch&&ch<='F') return 1;
33 if('A'<=ch && ch <='Z') return 1;
38 if('a'<=ch && ch <='z') return 1;
43 if( isprint(ch) && !isspace(ch) && !isalnum(ch) )
48 int isprint(int ch ) {
49 if( ' ' <= ch && ch <= 'z' ) return 1;
55 if( ' ' < ch && ch <= 'z' ) return 1;
60 if(ch == ' ') return 1;
61 if(ch == '\t') return 1;
62 if(ch == '\r') return 1;
63 if(ch == '\n') return 1;
68 if('a'<=ch && ch <='z')
69 return ch - 'a' + 'A';
73 if('A'<=ch && ch <='Z')
74 return ch - 'A' + 'a';
81 if(ch == ' ') return 1;
82 if(ch == '\t') return 1;