-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isalpha.c
39 lines (33 loc) · 1.27 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
31
32
33
34
35
36
37
38
39
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: snocita <snocita@student.42wolfsburg.de> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/12 19:09:53 by snocita #+# #+# */
/* Updated: 2022/12/14 14:54:56 by snocita ### ########.fr */
/* */
/* ************************************************************************** */
// #include <ctype.h>
// #include <stdio.h>
#include "libft.h"
int ft_isalpha(int c)
{
if (!(((c >= 65) && (c <= 90)) || ((c >= 97) && (c <= 122))))
return (0);
else
return (1);
}
// int main()
// {
// char c;
// char result1;
// char result2;
// c = '9';
// result1 = ft_isalpha(c);
// result2 = isalpha(c);
// printf("%d\n", result1);
// printf("%d\n", result2);
// return (0);
// }