-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isalpha.c
18 lines (16 loc) · 1007 Bytes
/
ft_isalpha.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hkchikec <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/05 06:55:45 by hkchikec #+# #+# */
/* Updated: 2019/05/07 23:07:49 by hkchikec ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalpha(int c)
{
return ((c <= 'z' && c >= 'a') || (c <= 'Z' && c >= 'A') ? 1 : 0);
}