Determines whether a character is a decimal-digit character.
Files
lib_ascii.h/lib_ascii.c
Prototypes
ASCII_IS_DIG(c); CPU_BOOLEAN ASCII_IsDig (CPU_CHAR c);
Arguments
c
Character to examine.
Returned Value
DEF_YES
,
if character is a decimal-digit character;
DEF_NO
,
if character is not a decimal-digit character.
Required Configuration
None.
Notes / Warnings
ISO/IEC 9899:TC2, Section 7.4.1.5.(2) states that “isdigit()
… tests for any decimal-digit character”.
Example Usage
CPU_CHAR c; CPU_BOOLEAN dig; c = ASCII_CHAR_DIGIT_SEVEN; dig = ASCII_IS_DIG(c);