-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isalpha.c
29 lines (26 loc) · 1.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
22
23
24
25
26
27
28
29
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: skanna <skanna@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/25 17:50:54 by skanna #+# #+# */
/* Updated: 2023/10/25 17:51:03 by skanna ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalpha(int c)
{
if ((c >= 97 && c <= 122) || (c >= 65 && c <= 90))
return (1);
return (0);
}
/*
#include <stdio.h>
int main(void)
{
int alpha = 96;
printf("%d", ft_isalpha(alpha));
return (0);
}*/