limits.h 480 B

12345678910111213141516171819202122232425
  1. #ifndef __LIMITS
  2. #define __LIMITS
  3. #define CHAR_BIT 8
  4. #define MB_LEN_MAX 1
  5. #define UCHAR_MAX 0xff
  6. #define USHRT_MAX 0xffff
  7. #define UINT_MAX (~0U)
  8. #define ULONG_MAX (~0UL)
  9. #define CHAR_MAX SCHAR_MAX
  10. #define SCHAR_MAX 0x7f
  11. #define SHRT_MAX 0x7fff
  12. #define INT_MAX 0x7fffffff
  13. #define LONG_MAX 0x7fffffffL
  14. #define CHAR_MIN SCHAR_MIN
  15. #define SCHAR_MIN (-SCHAR_MAX-1)
  16. #define SHRT_MIN (-SHRT_MAX-1)
  17. #define INT_MIN (-INT_MAX-1)
  18. #define LONG_MIN (-LONG_MAX-1)
  19. #endif /* __LIMITS */