/
ASCII_IS_ALPHA() / ASCII_IsAlpha()
ASCII_IS_ALPHA() / ASCII_IsAlpha()
Determines whether a character is an alphabetic character.
Files
lib_ascii.h/lib_ascii.c
Prototypes
ASCII_IS_ALPHA(ch); CPU_BOOLEAN ASCII_IsAlpha (CPU_CHAR ch);
Arguments
ch
Character to examine.
Returned Value
DEF_YES
,
if character is an alphabetic character;
DEF_NO
,
if character is not an alphabetic character.
Required Configuration
None.
Notes / Warnings
ISO/IEC 9899:TC2, Section 7.4.1.2.(2) states that “isalpha()
returns true only for the characters for which isupper()
or islower()
is true”.
Example Usage
CPU_CHAR ch; CPU_BOOLEAN alpha; ch = ASCII_CHAR_LATIN_UPPER_G; alpha = ASCII_IS_ALPHA(ch);
Related content
ASCII_IS_ALPHA_NUM() / ASCII_IsAlphaNum()
ASCII_IS_ALPHA_NUM() / ASCII_IsAlphaNum()
More like this
ASCII_IS_LOWER() / ASCII_IsLower()
ASCII_IS_LOWER() / ASCII_IsLower()
More like this
ASCII_TO_UPPER() / ASCII_ToUpper()
ASCII_TO_UPPER() / ASCII_ToUpper()
More like this
ASCII_TO_LOWER() / ASCII_ToLower()
ASCII_TO_LOWER() / ASCII_ToLower()
More like this
ASCII_IS_PUNCT() / ASCII_IsPunct()
ASCII_IS_PUNCT() / ASCII_IsPunct()
More like this
ASCII_IS_DIG_HEX() / ASCII_IsDigHex()
ASCII_IS_DIG_HEX() / ASCII_IsDigHex()
More like this