-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isalpha.c
26 lines (23 loc) · 1.07 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
22
23
24
25
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: chanheki <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/07/06 14:53:38 by chanheki #+# #+# */
/* Updated: 2022/07/13 00:41:42 by chanheki ### ########.fr */
/* */
/* ************************************************************************** */
static int ft_isupper(int c)
{
return ('A' <= c && c <= 'Z');
}
static int ft_islower(int c)
{
return ('a' <= c && c <= 'z');
}
int ft_isalpha(int c)
{
return (ft_isupper(c) || ft_islower(c));
}