Wednesday, August 31, 2016

C Library Header – limits

This header defines constants with the limits of fundamental integral types. These values are implementation-specific.

The <limits.h> header shall define the following macro constants:
CHAR_BIT number of bits in byte
MB_LEN_MAX maximum number of bytes in a multibyte character
CHAR_MIN minimum value of char
CHAR_MAX maximum value of char
SCHAR_MIN
SHRT_MIN
INT_MIN
LONG_MIN
LLONG_MIN
minimum value of signed char, short, int, long and long long(C99) respectively
SCHAR_MAX
SHRT_MAX
INT_MAX
LONG_MAX
LLONG_MAX
maximum value of signed char, short, int, long and long long(C99) respectively
UCHAR_MAX
USHRT_MAX
UINT_MAX
ULONG_MAX
ULLONG_MAX
maximum value of unsigned char, unsigned short, unsigned int, unsigned long and unsigned long long(C99) respectively



Related topics:
<float.h>   |   <inttypes.h>   |   <iso646.h>   |   <locale.h>   |   <math.h>   |   Standard Library in C

List of topics: C Programming

No comments:

Post a Comment