-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isalpha.c
More file actions
22 lines (20 loc) · 1.02 KB
/
ft_isalpha.c
File metadata and controls
22 lines (20 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: atiampae <atiampae@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/14 22:01:36 by atiampae #+# #+# */
/* Updated: 2022/10/19 16:14:29 by atiampae ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalpha(int c)
{
if (c >= 'a' && c <= 'z')
return (90);
else if (c >= 'A' && c <= 'Z')
return (55);
return (0);
}