/
ASCII_IS_PRINT() / ASCII_IsPrint()

ASCII_IS_PRINT() / ASCII_IsPrint()

Determines whether a character is a printing character.

Files

lib_ascii.h/lib_ascii.c

Prototypes

          ASCII_IS_PRINT(ch);
           
          CPU_BOOLEAN  ASCII_IsPrint (CPU_CHAR  ch);

Arguments

ch

Character to examine.

Returned Value

DEF_YES,

if character is a printing character;

DEF_NO,

if character is not a printing character.

Required Configuration

None.

Notes / Warnings

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

          CPU_CHAR     ch;
          CPU_BOOLEAN  print;


          ch    = ASCII_CHAR_LATIN_UPPER_G;
          print = ASCII_IS_PRINT(ch);

Related content

ASCII_IS_BLANK() / ASCII_IsBlank()
ASCII_IS_BLANK() / ASCII_IsBlank()
More like this
ASCII_IS_PUNCT() / ASCII_IsPunct()
ASCII_IS_PUNCT() / ASCII_IsPunct()
More like this
ASCII_IS_GRAPH() / ASCII_IsGraph()
ASCII_IS_GRAPH() / ASCII_IsGraph()
More like this
ASCII_IS_SPACE() / ASCII_IsSpace()
ASCII_IS_SPACE() / ASCII_IsSpace()
More like this
ASCII_IS_ALPHA_NUM() / ASCII_IsAlphaNum()
ASCII_IS_ALPHA_NUM() / ASCII_IsAlphaNum()
More like this
ASCII_IS_ALPHA() / ASCII_IsAlpha()
ASCII_IS_ALPHA() / ASCII_IsAlpha()
More like this