From Wikipedia, the free encyclopedia
- The correct title of this article is limits.h. The initial letter is shown capitalized due to technical restrictions.
limits.h is the header of the general purpose standard library of C programming language which includes definitions of the characteristics of variable types. The values are implementation specific, but may not be of lower magnitude than certain specified values in a conforming C implementation.
[edit] Member constants
Name |
Description |
Minimum value |
CHAR_BIT |
Number of bits in a byte |
+8 |
SCHAR_MIN |
Minimum value for a signed char |
-127 |
SCHAR_MAX |
Maximum value for a signed char |
+127 |
UCHAR_MAX |
Maximum value for an unsigned char |
+255 |
CHAR_MIN |
Minimum value for a char |
-127 (if char is represented as a signed char ; otherwise 0) |
CHAR_MAX |
Minimum value for a char |
+127 (if char is represented as a signed char ; otherwise +255) |
MB_LEN_MAX |
Maximum number of bytes in a multibyte character |
+1 |
SHRT_MIN |
Minimum value for a short int |
-32767 |
SHRT_MAX |
Maximum value for a short int |
+32767 |
USHRT_MAX |
Maximum value for an unsigned short int |
+65535 |
INT_MIN |
Minimum value for an int |
-32767 |
INT_MAX |
Maximum value for an int |
+32767 |
UINT_MAX |
Maximum value for an unsigned int |
+65535 |
LONG_MIN |
Minimum value for a long int |
-2147483647 |
LONG_MAX |
Maximum value for a long int |
+2147483647 |
ULONG_MAX |
Maximum value for an unsigned long int |
+4294967295 |
UULONG_MAX |
Maximum value for an unsigned long long int |
|
[edit] See also
C standard library
[edit] External Links
- Enquire: A program for automatically generating limits.h, and for checking that the values in an existing limits.h are correct
[edit] References
C Guide--2.5 limits.h, accessed in September 2006.