-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_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: vsoares- <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/28 14:13:26 by vsoares- #+# #+# */
/* Updated: 2024/11/08 18:38:57 by vsoares- ### ########.fr */
/* */
/* ************************************************************************** */
static int ft_isupper(int c)
{
return (c >= 'A' && c <= 'Z');
}
static int ft_islower(int c)
{
return (c >= 'a' && c <= 'z');
}
int ft_isalpha(int c)
{
return (ft_isupper(c) || ft_islower(c));
}