-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isalpha.c
21 lines (19 loc) · 1 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: haarab <haarab@student.1337.ma> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/09 13:39:57 by haarab #+# #+# */
/* Updated: 2022/10/09 14:54:48 by haarab ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalpha(int a)
{
if ((a >= 'a' && a <= 'z') || (a >= 'A' && a <= 'Z'))
return (1);
else
return (0);
}