
UM017105-0511 Standard Header Files
Zilog Developer Studio II – ZNEO™
User Manual
395
Character Testing
Character Case Mapping
Limits <limits.h>
The <limits.h> header defines macros that expand to various limits and parameters.
Macros
int isalnum(int c); Tests for alphanumeric character.
int isalpha(int c); Tests for alphabetic character.
int iscntrl(int c); Tests for control character.
int isdigit(int c); Tests for decimal digit.
int isgraph(int c); Tests for printable character except space.
int islower(int c); Tests for lowercase character.
int isprint(int c); Tests for printable character.
int ispunct(int c); Tests for punctuation character.
int isspace(int c); Tests for white-space character.
int isupper(int c); Tests for uppercase character.
int isxdigit(int c); Tests for hexadecimal digit.
int tolower(int c); Tests character and converts to lowercase if upper-
case.
int toupper(int c); Tests character and converts to uppercase if lower-
case.
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.
Komentáře k této Příručce