-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isalpha.c
30 lines (29 loc) · 1.15 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
30
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rgerdzhi <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/22 20:51:17 by rgerdzhi #+# #+# */
/* Updated: 2024/07/09 19:10:15 by rgerdzhi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalpha(int c)
{
if ((c >= 65 && c <= 90) || (c >= 97 && c <= 122))
return (1024);
else
return (0);
}
/*
#include <ctype.h>
int main()
{
char c = 'A';
printf("MY FUNTION: %d\n", ft_isalpha(c));
printf("isalph: %d\n", isalpha(c));
return (0);
}
*/