Leaked source code of windows server 2003
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.

32 lines
1.5 KiB

  1. /***
  2. *limits.h - implementation dependent values
  3. *
  4. * Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * contains defines for a number of implementation dependent values
  8. * which are commonly used in C programs.
  9. * [ANSI]
  10. *
  11. *******************************************************************************/
  12. #ifndef _CHAR_UNSIGNED
  13. #define CHAR_MAX 127 /* maximum char value */
  14. #define CHAR_MIN -127 /* mimimum char value */
  15. #else
  16. #define CHAR_MAX 255
  17. #define CHAR_MIN 0
  18. #endif
  19. #define SCHAR_MAX 127 /* maximum signed char value */
  20. #define SCHAR_MIN -127 /* minimum signed char value */
  21. #define UCHAR_MAX 255 /* maximum unsigned char value */
  22. #define CHAR_BIT 8 /* number of bits in a char */
  23. #define USHRT_MAX 0xffff /* maximum unsigned short value */
  24. #define SHRT_MAX 32767 /* maximum (signed) short value */
  25. #define SHRT_MIN -32767 /* minimum (signed) short value */
  26. #define UINT_MAX 0xffff /* maximum unsigned int value */
  27. #define ULONG_MAX 0xffffffff /* maximum unsigned long value */
  28. #define INT_MAX 32767 /* maximum (signed) int value */
  29. #define INT_MIN -32767 /* minimum (signed) int value */
  30. #define LONG_MAX 2147483647 /* maximum (signed) long value */
  31. #define LONG_MIN -2147483647 /* minimum (signed) long value */