home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 May: Tool Chest / Apple_Developer_CD_Series_May_1994_Tool_Chest.iso / Tool Chest / Interfaces / Universal Interfaces / limits.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-10  |  619 b   |  38 lines  |  [TEXT/MPS ]

  1. /*
  2.     Limits.h -- Sizes of integral types 
  3.     
  4.     Copyright Apple Computer,Inc.    1987, 1990
  5.     All rights reserved.
  6.  
  7. */
  8.  
  9. #ifndef __LIMITS__
  10. #define __LIMITS__
  11.  
  12. #define CHAR_BIT    8
  13.  
  14. #ifndef CHAR_MAX
  15. #define CHAR_MAX    127
  16. #endif
  17.  
  18. #ifndef CHAR_MIN
  19. #define CHAR_MIN    (-128)
  20. #endif
  21.  
  22. #define MB_LEN_MAX    1
  23. #define INT_MAX        2147483647
  24. #define INT_MIN        (-INT_MAX - 1)
  25. #define LONG_MAX    2147483647
  26. #define LONG_MIN    (-LONG_MAX - 1)
  27. #define SCHAR_MAX    127
  28. #define SCHAR_MIN    (-128)
  29. #define SHRT_MAX    32767
  30. #define SHRT_MIN    (-32768)
  31. #define UCHAR_MAX    255U
  32. #define UINT_MAX    4294967295U
  33. #define ULONG_MAX    4294967295U
  34. #define USHRT_MAX    65535
  35.  
  36.  
  37. #endif
  38.