isalpha
| Character Classification and Conversion Functions |
Checks if a character is a letter in the alphabet.
int isalpha( int c);
| c | The character to check. |
The function isalpha checks to see if a character is within the ranges A - Z or a - z.
Return Values
This function returns a non-zero value (true) if the character is a letter, zero (false) if it is not.
Example
The following example tests if the characters with the ASCII values 107 and 22 are letters.
if (isalpha(107))
lr_output_message ("The value 107 is %c", 107);
else
lr_output_message ("The value 107 is not alphabetic");
if (isalpha(22))
lr_output_message ("The value 22 is %c", 22);
else
lr_output_message ("The value 22 is not alphabetic");Example: Output:
Action.c(4): The value 107 is k
Action.c(11): The value 22 is not alphabetic

