-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_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: ggladkov <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/03/02 17:57:37 by ggladkov #+# #+# */
/* Updated: 2017/03/02 18:22:11 by ggladkov ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalpha(int c)
{
if ((c <= 'Z' && c >= 'A') || (c <= 'z' && c >= 'a'))
return (1);
else
return (0);
}