Limits floating point Page 342
Page 342

UM014423-0607
C Standard Library
ZiLOG Developer Studio II
eZ80Acclaim!
®
User Manual
322
Character Case Mapping
Limits
The <
limits.h
> header defines macros that expand to various limits and parameters.
Macros
If the value of an object of type char sign-extends when used in an expression, the value of
CHAR_MIN is the same as that of SCHAR_MIN, and the value of CHAR_MAX is the
same as that of SCHAR_MAX. If the value of an object of type
char
does not sign-extend
when used in an expression, the value of CHAR_MIN is 0, and the value of CHAR_MAX
is the same as that of UCHAR_MAX.
Floating Point
The <
float.h
> header defines macros that expand to various limits and parameters.
int tolower(int c);
Tests character and converts to lowercase if uppercase.
int toupper(int c);
Tests character and converts to uppercase if lowercase.
CHAR_BIT
Maximum number of bits for smallest object that is not a bit-field (byte).
CHAR_MAX
Maximum value for an object of type char.
CHAR_MIN
Minimum value for an object of type char.
INT_MAX
Maximum value for an object of type int.
INT_MIN
Minimum value for an object of type int.
LONG_MAX
Maximum value for an object of type long int.
LONG_MIN
Minimum value for an object of type long int.
SCHAR_MAX
Maximum value for an object of type signed char.
SCHAR_MIN
Minimum value for an object of type signed char.
SHRT_MAX
Maximum value for an object of type short int.
SHRT_MIN
Minimum value for an object of type short int.
UCHAR_MAX
Maximum value for an object of type unsigned char.
UINT_MAX
Maximum value for an object of type unsigned int.
ULONG_MAX
Maximum value for an object of type unsigned long int.
USHRT_MAX
Maximum value for an object of type unsigned short int.