1: /* ctype.h 4.2 85/09/04 */ 2: 3: #define _U 01 4: #define _L 02 5: #define _N 04 6: #define _S 010 7: #define _P 020 8: #define _C 040 9: #define _X 0100 10: #define _B 0200 11: 12: extern char _ctype_[]; 13: 14: #define isalpha(c) ((_ctype_+1)[c]&(_U|_L)) 15: #define isupper(c) ((_ctype_+1)[c]&_U) 16: #define islower(c) ((_ctype_+1)[c]&_L) 17: #define isdigit(c) ((_ctype_+1)[c]&_N) 18: #define isxdigit(c) ((_ctype_+1)[c]&(_N|_X)) 19: #define isspace(c) ((_ctype_+1)[c]&_S) 20: #define ispunct(c) ((_ctype_+1)[c]&_P) 21: #define isalnum(c) ((_ctype_+1)[c]&(_U|_L|_N)) 22: #define isprint(c) ((_ctype_+1)[c]&(_P|_U|_L|_N|_B)) 23: #define isgraph(c) ((_ctype_+1)[c]&(_P|_U|_L|_N)) 24: #define iscntrl(c) ((_ctype_+1)[c]&_C) 25: #define isascii(c) ((unsigned)(c)<=0177) 26: #define toupper(c) ((c)-'a'+'A') 27: #define tolower(c) ((c)-'A'+'a') 28: #define toascii(c) ((c)&0177)