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

Defined macros

_C defined in line 6; used 29 times
_L defined in line 2; used 30 times
_N defined in line 3; used 14 times
_P defined in line 5; used 35 times
_S defined in line 4; used 7 times
_U defined in line 1; used 30 times
_X defined in line 7; used 13 times
isalpha defined in line 11; used 65 times
isdigit defined in line 14; used 196 times
ispunct defined in line 17; used 1 times
isspace defined in line 16; used 161 times
isupper defined in line 12; used 57 times
isxdigit defined in line 15; never used
toascii defined in line 24; never used

Usage of this include

ctype.h used 129 times
Last modified: 1983-08-28
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 954
Valid CSS Valid XHTML 1.0 Strict