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);
26 if('a'<=ch && ch <='z')
27 return ch - 'a' + 'A';
31 if('A'<=ch && ch <='Z')
32 return ch - 'A' + 'a';
36 int isprint(int ch ) {
37 if( ch < ' ' ) return 0;
38 if( ch > 'z' ) return 0;
43 if(ch == ' ') return 1;
44 if(ch == '\t') return 1;
45 if(ch == '\r') return 1;
46 if(ch == '\n') return 1;
50 int isxdigit(int ch) {
51 if('0'<=ch&&ch<='9') return 1;
52 if('a'<=ch&&ch<='f') return 1;
53 if('F'<=ch&&ch<='F') return 1;
59 if(ch == ' ') return 1;
60 if(ch == '\t') return 1;