-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isalpha.c
26 lines (24 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ana-lda- <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/10 18:59:35 by ana-lda- #+# #+# */
/* Updated: 2024/04/11 20:43:35 by ana-lda- ### ########.fr */
/* */
/* ************************************************************************** */
int ft_isalpha(int c)
{
if ((c < 65 || (c > 90 && c < 97) || c > 122))
return (0);
return (1024);
}
/*#include <stdio.h>
#include <ctype.h>
int main(void)
{
printf("%i\n", ft_isalpha('k'));
printf("%i\n", isalpha('k'));
}*/