-
Notifications
You must be signed in to change notification settings - Fork 1
/
ft_isalpha.c
32 lines (29 loc) · 1.17 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jede-ara <jede-ara@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/02 14:34:45 by jede-ara #+# #+# */
/* Updated: 2022/11/08 14:26:52 by jede-ara ### ########.fr */
/* */
/* ************************************************************************** */
/*
DESCRIÇÃO: isalpha() verifica se os caracteres são letras.
*/
#include "libft.h"
int ft_isalpha(int c)
{
if ((c >= 65 && c <= 90) || (c >= 97 && c <= 122))
return (1);
else
return (0);
}
/*#include <stdio.h>
int main()
{
char c = 'j' ;
int b = 12345 ;
printf("%d",ft_isalpha(b));
}*/