...
lib_ascii.h/lib_ascii.c
Prototypes
Code Block | ||
---|---|---|
| ||
ASCII_TO_LOWER(ch);
CPU_CHAR ASCII_ToLower (CPU_CHAR ch); |
Arguments
ch
Character to examine.
...
ISO/IEC 9899:TC2, Section 7.4.2.1.(2) states that “tolower()
... converts an uppercase letter to a corresponding lowercase letter”. ISO/IEC 9899:TC2, Section 7.4.2.1.(3) states that “if the argument is a character for which isupper()
is true and there are one or more corresponding characters ... for which islower()
is true, ... tolower()
... returns one of the corresponding characters; ... otherwise, the argument is returned unchanged”.
Example Usage
Code Block | ||
---|---|---|
| ||
CPU_CHAR ch;
CPU_CHAR c_lower;
ch = ASCII_CHAR_LATIN_UPPER_G;
c_lower = ASCII_TO_LOWER(ch); |