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 62 times
isalpha defined in line 14; used 116 times
isdigit defined in line 17; used 499 times
isgraph defined in line 23; never used
islower defined in line 16; used 93 times
isprint defined in line 22; used 56 times
isspace defined in line 19; used 451 times
isupper defined in line 15; used 174 times
tolower defined in line 27; used 129 times
toupper defined in line 26; used 66 times

Usage of this include

ctype.h used 404 times
Last modified: 1985-09-07
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1714
Valid CSS Valid XHTML 1.0 Strict