-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isalpha.c
37 lines (33 loc) · 1.19 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ael-haib <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/21 13:12:57 by ael-haib #+# #+# */
/* Updated: 2024/02/11 14:57:20 by ael-haib ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalpha(int c)
{
if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
{
return (1);
}
else
{
return (0);
}
}
/* int main()
{
char ch;
ch = '#';
if (ft_isalpha (ch)) {
printf("the %c (input) is a alpha", ft_isalpha(ch));
} else { printf("its not an alpha"); }
return (0);
}
*/