-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isalpha.c
More file actions
23 lines (20 loc) · 1.02 KB
/
ft_isalpha.c
File metadata and controls
23 lines (20 loc) · 1.02 KB
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: tyassine <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/11/25 06:20:41 by tyassine #+# #+# */
/* Updated: 2015/11/27 10:45:36 by tyassine ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalpha(int c)
{
int ret;
ret = 0;
if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z'))
ret = 1;
return (ret);
}