isalpha

Example: isalphaCharacter 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.