Versions Compared

Key

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

...

lib_ascii.h/lib_ascii.c

Prototypes

Code Block
languagecpp
          ASCII_IS_DIG(ch);
           
          CPU_BOOLEAN  ASCII_IsDig (CPU_CHAR  ch);


Arguments

ch

Character to examine.

...

ISO/IEC 9899:TC2, Section 7.4.1.5.(2) states that “isdigit() … tests for any decimal-digit character”.

Example Usage

Code Block
languagecpp
          CPU_CHAR     ch;
          CPU_BOOLEAN  dig;


          ch  = ASCII_CHAR_DIGIT_SEVEN;
          dig = ASCII_IS_DIG(ch);