-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isalpha.c
23 lines (20 loc) · 1.05 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: xle-boul <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/01 14:50:14 by xle-boul #+# #+# */
/* Updated: 2021/10/17 12:53:23 by xle-boul ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/* check if char c is alphabetical. Returns 1 if true */
int ft_isalpha(int c)
{
if ((65 <= c && c <= 90)
|| (97 <= c && c <= 122))
return (1);
return (0);
}