/
ASCII_IS_SPACE() / ASCII_IsSpace()
ASCII_IS_SPACE() / ASCII_IsSpace()
Determines whether a character is a white-space character.
Files
lib_ascii.h/lib_ascii.c
Prototypes
ASCII_IS_SPACE(ch); CPU_BOOLEAN ASCII_IsSpace (CPU_CHAR ch);
Arguments
ch
Character to examine.
Returned Value
DEF_YES
,
if character is a white-space character;
DEF_NO
,
if character is not a white-space character.
Required Configuration
None.
Notes / Warnings
ISO/IEC 9899:TC2, Section 7.4.1.10.(2) states that “isspace()
returns true only for the standard white-space characters”. ISO/IEC 9899:TC2, Section 7.4.1.10.(2) defines “the standard white-space characters” as the “space (' '
), form feed ('\f'
), new-line ('\n'
), carriage return ('\r'
), horizontal tab ('\t'
), and vertical tab ('\v'
)”.
Example Usage
CPU_CHAR ch; CPU_BOOLEAN space; ch = ASCII_CHAR_CARRIAGE_RETURN; space = ASCII_IS_SPACE(ch);
Related content
ASCII_IS_BLANK() / ASCII_IsBlank()
ASCII_IS_BLANK() / ASCII_IsBlank()
More like this
ASCII_IS_PRINT() / ASCII_IsPrint()
ASCII_IS_PRINT() / ASCII_IsPrint()
More like this
ASCII_IS_PUNCT() / ASCII_IsPunct()
ASCII_IS_PUNCT() / ASCII_IsPunct()
More like this
ASCII_IS_GRAPH() / ASCII_IsGraph()
ASCII_IS_GRAPH() / ASCII_IsGraph()
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