-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isalpha.c
executable file
·22 lines (19 loc) · 1.02 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ngouy <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/11/05 11:27:02 by ngouy #+# #+# */
/* Updated: 2015/11/04 15:29:12 by ngouy ### ########.fr */
/* */
/* ************************************************************************** */
/*
** return 1 if c is a letter, 0 either
*/
#include "libft.h"
int ft_isalpha(int c)
{
return ((c >= 65 && c <= 90) || (c >= 97 && c <= 122));
}