1: /* $Header: handy.h,v 1.0 87/12/18 13:07:15 root Exp $
   2:  *
   3:  * $Log:	handy.h,v $
   4:  * Revision 1.0  87/12/18  13:07:15  root
   5:  * Initial revision
   6:  *
   7:  */
   8: 
   9: #define Null(type) ((type)0)
  10: #define Nullch Null(char*)
  11: #define Nullfp Null(FILE*)
  12: 
  13: #define bool char
  14: #define TRUE (1)
  15: #define FALSE (0)
  16: 
  17: #define Ctl(ch) (ch & 037)
  18: 
  19: #define strNE(s1,s2) (strcmp(s1,s2))
  20: #define strEQ(s1,s2) (!strcmp(s1,s2))
  21: #define strLT(s1,s2) (strcmp(s1,s2) < 0)
  22: #define strLE(s1,s2) (strcmp(s1,s2) <= 0)
  23: #define strGT(s1,s2) (strcmp(s1,s2) > 0)
  24: #define strGE(s1,s2) (strcmp(s1,s2) >= 0)
  25: #define strnNE(s1,s2,l) (strncmp(s1,s2,l))
  26: #define strnEQ(s1,s2,l) (!strncmp(s1,s2,l))

Defined macros

Ctl defined in line 17; never used
Null defined in line 9; used 4 times
Nullfp defined in line 11; never used
strEQ defined in line 20; used 11 times
strGE defined in line 24; never used
strGT defined in line 23; never used
strLE defined in line 22; never used
strLT defined in line 21; never used
strNE defined in line 19; used 3 times
strnNE defined in line 25; never used

Usage of this include

Last modified: 2002-12-19
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2726
Valid CSS Valid XHTML 1.0 Strict