-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isalpha.c
executable file
·29 lines (27 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
27
28
29
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dacarret <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/20 11:35:24 by dacarret #+# #+# */
/* Updated: 2024/09/20 12:02:58 by dacarret ### ########.fr */
/* */
/* ************************************************************************** */
/*#include <stdio.h>*/
int ft_isalpha(int c)
{
if ((c >= 'a' && c <= 'z') || (c >= 'A') && (c <= 'Z'))
return (1);
else
return (0);
}
/*int main(void)
{
int ret;
char x;
x = 'z';
ret = ft_isalpha(x);
printf("%d", ret);
}*/