-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isalpha.c
22 lines (20 loc) · 1.03 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sbin-jef <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/30 05:06:39 by sbin-jef #+# #+# */
/* Updated: 2024/08/11 21:30:59 by sbin-jef ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalpha(char c)
{
if (c == '\0')
return (0);
if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))
return (1);
return (0);
}