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_IS_PRINT(cch);
           
          CPU_BOOLEAN  ASCII_IsPrint (CPU_CHAR  cch);


Arguments

cch

Character to examine.

Returned Value

...

ISO/IEC 9899:TC2, Section 7.4.1.8.(2) states that “isprint() ... tests for any printing character including space (' ')”. ISO/IEC 9899:TC2, Section 7.4.(3), Note 169, states that in “the seven-bit US ASCII character set, the printing characters are those whose values lie from 0x20 (space) through 0x7E (tilde)”.

Example Usage

Code Block
LanguageC++
CaptionTextCAPTION
languagecpp
          CPU_CHAR     cch;
          CPU_BOOLEAN  print;


                  ch  c     = ASCII_CHAR_LATIN_UPPER_G;
          print = ASCII_IS_PRINT(cch);