-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isalpha.c
More file actions
27 lines (25 loc) · 1.11 KB
/
ft_isalpha.c
File metadata and controls
27 lines (25 loc) · 1.11 KB
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
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: thfranco <thfranco@student.42.rio> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/04 11:21:07 by thfranco #+# #+# */
/* Updated: 2023/11/04 11:21:18 by thfranco ### ########.fr */
/* */
/* ************************************************************************** */
int ft_isalpha(int c)
{
if (c >= 65 && c <= 90)
return (1);
if (c >= 97 && c <= 122)
return (2);
return (0);
}
/*int main(int ac, char **av)
{
(void)ac;
printf("%d", ft_isalpha(av[1][0]));
return (0);
}*/