Determines whether a character is a punctuation character.
Files
lib_ascii.h/lib_ascii.c
Prototypes
ASCII_IS_PUNCT(c); CPU_BOOLEAN ASCII_IsPunct (CPU_CHAR c);
Arguments
c
Character to examine.
Returned Value
DEF_YES
,
if character is a punctuation character;
DEF_NO
,
if character is not a punctuation character.
Required Configuration
None.
Notes / Warnings
ISOISO/IEC 9899:TC2, Section 7.4.1.9.(2) states that “ispunct()
returns true for every printing character for which neither isspace()
nor isalnum()
is true”.
Example Usage
CPU_CHAR c; CPU_BOOLEAN punct; c = ASCII_CHAR_COLON; punct = ASCII_IS_PUNCT(c);