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 834B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright (C) 2004 Tobias Lorenz
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. #ifndef __LIMITS_H
  9. #define __LIMITS_H 1
  10. #define MB_LEN_MAX 16
  11. #define CHAR_BIT 8
  12. #define SCHAR_MIN (-128)
  13. #define SCHAR_MAX 127
  14. #define UCHAR_MAX 255
  15. #define CHAR_MIN SCHAR_MIN
  16. #define CHAR_MAX SCHAR_MAX
  17. #define SHRT_MIN (-32768)
  18. #define SHRT_MAX 32767
  19. #define USHRT_MAX 65535
  20. #define INT_MIN (-INT_MAX - 1)
  21. #define INT_MAX 2147483647
  22. #define UINT_MAX 4294967295U
  23. #define LONG_MAX 2147483647L
  24. #define LONG_MIN (-LONG_MAX - 1L)
  25. #define ULONG_MAX 4294967295UL
  26. #define LLONG_MAX 9223372036854775807LL
  27. #define LLONG_MIN (-LLONG_MAX - 1LL)
  28. #define ULLONG_MAX 18446744073709551615ULL
  29. #endif