You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

limits.h 1.5KB

12345678910111213141516171819202122232425262728293031323334
  1. /*--------------------------------------------------------------------------*/
  2. /* Project: ANSI C Standard Header Files */
  3. /* File: LIMITS.H */
  4. /* Edited by: hyperstone electronics GmbH */
  5. /* Am Seerhein 8 */
  6. /* D-78467 Konstanz, Germany */
  7. /* Date: January 30, 1996 */
  8. /*--------------------------------------------------------------------------*/
  9. /* Purpose: */
  10. /* The header file <limits.h> defines limits of ordinal types */
  11. /* (char, short, int, long) */
  12. /*--------------------------------------------------------------------------*/
  13. #ifndef __LIMITS_H
  14. #define __LIMITS_H 1
  15. #define MB_LEN_MAX 1
  16. #define CHAR_BIT 8
  17. #define SCHAR_MIN -128L
  18. #define SCHAR_MAX 127L
  19. #define UCHAR_MAX 255
  20. #define CHAR_MIN 0
  21. #define CHAR_MAX UCHAR_MAX
  22. #define SHRT_MIN -32768
  23. #define SHRT_MAX 32767
  24. #define USHRT_MAX 65535
  25. #define INT_MIN 0x80000000
  26. #define INT_MAX 0x7FFFFFFF
  27. #define UINT_MAX 0xFFFFFFFFL
  28. #define LONG_MIN INT_MIN
  29. #define LONG_MAX INT_MAX
  30. #define ULONG_MAX UINT_MAX
  31. #endif