-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isalpha.c
19 lines (17 loc) · 1.01 KB
/
ft_isalpha.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ibeliaie <ibeliaie@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/05/15 17:42:51 by ibeliaie #+# #+# */
/* Updated: 2023/05/18 17:21:29 by ibeliaie ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/* check if character is alphabetic */
int ft_isalpha(int c)
{
return ((c >= 65 && c <= 90) || (c >= 97 && c <= 122));
}