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)

Defined macros

_B defined in line 10; used 1 times
  • in line 22
_C defined in line 8; used 1 times
  • in line 24
_L defined in line 4; used 5 times
_N defined in line 5; used 5 times
_P defined in line 7; used 3 times
_S defined in line 6; used 1 times
  • in line 19
_U defined in line 3; used 5 times
_X defined in line 9; used 1 times
  • in line 18
isalnum defined in line 21; never used
isalpha defined in line 14; never used
isascii defined in line 25; never used
iscntrl defined in line 24; never used
isdigit defined in line 17; never used
isgraph defined in line 23; never used
islower defined in line 16; never used
isprint defined in line 22; never used
ispunct defined in line 20; never used
isspace defined in line 19; never used
isupper defined in line 15; never used
isxdigit defined in line 18; never used
toascii defined in line 28; never used
tolower defined in line 27; never used
toupper defined in line 26; never used
Last modified: 1985-09-07
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1224
Valid CSS Valid XHTML 1.0 Strict