-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_isalpha.c
More file actions
29 lines (26 loc) · 1.18 KB
/
Copy pathft_isalpha.c
File metadata and controls
29 lines (26 loc) · 1.18 KB
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: csekakul <csekakul@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/01/12 12:20:19 by csekakul #+# #+# */
/* Updated: 2026/01/16 15:45:04 by csekakul ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalpha(int c)
{
if ((c > 96 && c < 123) || (c > 64 && c < 91))
{
return (1);
}
return (0);
}
/*int main(void)
{
printf("Returned value with original isalpha function: %d\n", isalpha(50));
printf("Returned value with my isalpha function: %d\n", ft_isalpha(50));
return (0);
}*/