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 2 times
_C defined in line 8; used 34 times
_L defined in line 4; used 31 times
_N defined in line 5; used 15 times
_P defined in line 7; used 35 times
_S defined in line 6; used 7 times
_U defined in line 3; used 31 times
_X defined in line 9; used 13 times
isalnum defined in line 21; used 71 times
isalpha defined in line 14; used 120 times
isascii defined in line 25; used 57 times
isdigit defined in line 17; used 453 times
isgraph defined in line 23; never used
islower defined in line 16; used 87 times
isprint defined in line 22; used 50 times
ispunct defined in line 20; used 2 times
isspace defined in line 19; used 376 times
isupper defined in line 15; used 153 times
toascii defined in line 28; used 2 times
tolower defined in line 27; used 107 times
toupper defined in line 26; used 73 times

Usage of this include

ctype.h used 334 times
Last modified: 1986-12-15
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 4948
Valid CSS Valid XHTML 1.0 Strict