home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c063 / 1.ddi / INCLUDE.ZIP / LIMITS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-18  |  979 b   |  45 lines

  1. /*  limits.h
  2.  
  3.     Defines implementation specific limits on type values.
  4.  
  5.     Copyright (c) 1987, 1991 by Borland International
  6.     All Rights Reserved.
  7. */
  8.  
  9. #ifndef __LIMITS_H
  10. #define __LIMITS_H
  11.  
  12. #if !defined( __DEFS_H )
  13. #include <_defs.h>
  14. #endif
  15.  
  16. #define CHAR_BIT            8
  17.  
  18. #if ('\x80' < 0)
  19. #define CHAR_MAX            127
  20. #define CHAR_MIN            (-128)
  21. #else
  22. #define CHAR_MAX            255
  23. #define CHAR_MIN            0
  24. #endif
  25.  
  26. #define SCHAR_MAX           127
  27. #define SCHAR_MIN           (-128)
  28. #define UCHAR_MAX           255
  29.  
  30. #define SHRT_MAX            0x7FFF
  31. #define SHRT_MIN            ((int)0x8000)
  32. #define USHRT_MAX           0xFFFFU
  33.  
  34. #define INT_MAX             0x7FFF
  35. #define INT_MIN             ((int)0x8000)
  36. #define UINT_MAX            0xFFFFU
  37.  
  38. #define LONG_MAX            0x7FFFFFFFL
  39. #define LONG_MIN            ((long)0x80000000L)
  40. #define ULONG_MAX           0xFFFFFFFFUL
  41.  
  42. #define MB_LEN_MAX          1
  43.  
  44. #endif
  45.