Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

lib_ascii.h/lib_ascii.c

Prototypes

Code Block
LanguageC++
CaptionTextCAPTION
languagecpp
          ASCII_TO_LOWER(cch);
           
          CPU_CHAR  ASCII_ToLower (CPU_CHAR  cch);


Arguments

cch

Character to examine.

Returned Value

...

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
LanguageC++
CaptionTextCAPTION
languagecpp
          CPU_CHAR  cch;
          CPU_CHAR  c_lower;


                  ch  c       = ASCII_CHAR_LATIN_UPPER_G;
          c_lower = ASCII_TO_LOWER(cch);