/
ASCII_IS_PUNCT() / ASCII_IsPunct()
ASCII_IS_PUNCT() / ASCII_IsPunct()
Determines whether a character is a punctuation character.
Files
lib_ascii.h/lib_ascii.c
Prototypes
ASCII_IS_PUNCT(ch); CPU_BOOLEAN ASCII_IsPunct (CPU_CHAR ch);
Arguments
ch
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 ch; CPU_BOOLEAN punct; ch = ASCII_CHAR_COLON; punct = ASCII_IS_PUNCT(ch);
Related content
ASCII_IS_PRINT() / ASCII_IsPrint()
ASCII_IS_PRINT() / ASCII_IsPrint()
More like this
ASCII_IS_BLANK() / ASCII_IsBlank()
ASCII_IS_BLANK() / ASCII_IsBlank()
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
ASCII_IS_DIG() / ASCII_IsDig()
ASCII_IS_DIG() / ASCII_IsDig()
More like this