ASCII_IS_GRAPH() / ASCII_IsGraph()

Determines whether a character is a graphic character.

Files

lib_ascii.h/lib_ascii.c

Prototypes

          ASCII_IS_GRAPH(ch);
           
          CPU_BOOLEAN  ASCII_IsGraph (CPU_CHAR  ch);

Arguments

ch

Character to examine.

Returned Value

DEF_YES,

if character is a graphic character;

DEF_NO,

if character is not a graphic character.

Required Configuration

None.

Notes / Warnings

ISO/IEC 9899:TC2, Section 7.4.1.6.(2) states that “isgraph() ... tests for any printing character except 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  graph;


          ch    = ASCII_CHAR_LATIN_UPPER_G;
          graph = ASCII_IS_GRAPH(ch);