-
Notifications
You must be signed in to change notification settings - Fork 1
/
ft_isalpha.c
27 lines (24 loc) · 1.07 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
24
25
26
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jony <jony@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/22 11:59:51 by mhasan #+# #+# */
/* Updated: 2019/11/04 22:10:28 by jony ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalpha(int c)
{
if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
return (1);
return (0);
}
int main(void)
{
char c = 'a';
printf("%d", ft_isalpha(c));
return (0);
}