Libft
42 Libft library documentation
Loading...
Searching...
No Matches
ft_isalpha.c File Reference

Go to the source code of this file.

Functions

int isalpha (int c)
 Checks whether a character is alphabetic.
 

Function Documentation

◆ isalpha()

int isalpha ( int  c)

Checks whether a character is alphabetic.

Parameters
cCharacter value to test.
Returns
Non-zero if c is in [A-Z] or [a-z], 0 otherwise.

Definition at line 19 of file ft_isalpha.c.

20{
21 return (((unsigned int)(c | 32) - 'a') < 26);
22}