home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_08_03 / 8n03101a < prev    next >
Text File  |  1990-03-20  |  703b  |  40 lines

  1.  
  2.  
  3. *** Listing 7 ***
  4.  
  5. /*
  6.  * limits.h - sizes of integral types (using minimum 
  7.  * magnitudes)
  8.  *
  9. #ifndef _LIMITS_H_INCLUDED
  10.  
  11. #include <quirks.h>
  12.  
  13. #define CHAR_BIT    8
  14. #define SCHAR_MIN    (-127)
  15. #define SCHAR_MAX    127
  16. #define UCHAR_MAX    255
  17.  
  18. #ifndef _CHAR_UNSIGNED
  19. #define CHAR_MAX    SCHAR_MAX
  20. #define CHAR_MIN    SCHAR_MIN
  21. #else
  22. #define CHAR_MAX    UCHAR_MAX
  23. #define CHAR_MIN    0
  24. #endif
  25.  
  26. #define MB_LEN_MAX    1
  27. #define SHRT_MIN    (-32767)
  28. #define SHRT_MAX    32767
  29. #define USHRT_MAX    65535u
  30. #define INT_MIN        (-32767)
  31. #define INT_MAX        32767
  32. #define UINT_MAX    65535u
  33. #define LONG_MIN    (-2147483647)
  34. #define LONG_MAX    2147483647
  35. #define ULONG_MAX    4294967295u
  36.  
  37. #define _LIMITS_H_INCLUDED
  38. #endif
  39.  
  40.