home *** CD-ROM | disk | FTP | other *** search
- /*** ctype.h
- /******************************************************************;
- ;* *;
- ;* INTEL CORPORATION PROPRIETARY INFORMATION. *;
- ;* THIS LISTING IS SUPPLIED UNDER THE TERMS OF A LICENSE *;
- ;* AGREEMENT OR NON-DISCLOSURE AGREEMENT WITH INTEL CORPORATION *;
- ;* AND MAY NOT BE COPIED NOR DISCLOSED EXCEPT IN ACCORDANCE *;
- ;* WITH THE TERMS OF THAT AGREEMENT. *;
- ;* *;
- ;******************************************************************/
-
- #define L 0x01
- #define U 0x02
- #define D 0x04
- #define S 0x08
- #define P 0x10
- #define C 0x20
- #define X 0x40
- #define B 0x80
-
- extern const char _ctype_[];
-
- #define isalnum(c) ((_ctype_)[c] & (U|L|D))
- #define isalpha(c) ((_ctype_)[c] & (U|L))
- #define isascii(c) ((unsigned)(c)<=0177)
- #define iscntrl(c) ((_ctype_)[c] & C)
- #define isdigit(c) ((_ctype_)[c] & D)
- #define isgraph(c) ((_ctype_)[c] & (P|U|L|D))
- #define islower(c) ((_ctype_)[c] & L)
- #define isprint(c) ((_ctype_)[c] & (P|U|L|D|B))
- #define ispunct(c) ((_ctype_)[c] & P)
- #define isspace(c) ((_ctype_)[c] & S)
- #define isupper(c) ((_ctype_)[c] & U)
- #define isxdigit(c) ((_ctype_)[c] & X)
- #define _toupper(c) ((c) & 0x5f)
- #define _tolower(c) ((c) | 0x20)
-