home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_09_10 / 9n10132a < prev    next >
Text File  |  1991-08-26  |  518b  |  25 lines

  1.  
  2. Listing 1 (NUMDEFS.H)
  3.  
  4. /**************************************************
  5. *
  6. *       file d:\cips\numdefs.h
  7. *
  8. *       This file contains some macro definitions
  9. *       which are used by the get_integer, float,
  10. *       short, and long functions.
  11. *
  12. ***************************************************/
  13.  
  14. #define is_digit(x) ((x >= '0' && x <= '9') ? 1 : 0)
  15.  
  16. #define is_blank(x) ((x == ' ') ? 1 : 0)
  17.  
  18. #define to_decimal(x) (x - '0')
  19.  
  20. #define NO_ERROR  0
  21. #define IO_ERROR -1
  22. #define NULL2   '\0'
  23.  
  24.  
  25.