-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isalpha.c
21 lines (21 loc) · 1.17 KB
/
ft_isalpha.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jamendoe <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/02 18:32:00 by jamendoe #+# #+# */
/* Updated: 2022/11/02 18:34:07 by jamendoe ### ########.fr */
/* */
/* ************************************************************************** */
int ft_isalpha(int c)
{
return ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'));
}
/*
ft_isalpha checks for an alphabetic character; in the standard "C"
locale, it is equivalent to (isupper(c) || islower(c)).
The values returned are nonzero if the character c falls into the
tested class, and zero if not
*/