-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isalpha.c
22 lines (19 loc) · 1.05 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: jados-sa <jados-sa@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/23 21:15:44 by jados-sa #+# #+# */
/* Updated: 2024/10/23 21:15:55 by jados-sa ### ########.fr */
/* */
/* ************************************************************************** */
/* Checks for an alphabetic character */
#include "libft.h"
int ft_isalpha(char c)
{
if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z'))
return (1);
return (0);
}