-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isalpha.c
23 lines (20 loc) · 1.07 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gaaraujo <gaaraujo@student.42wolfsburg.de> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/16 15:14:30 by gaaraujo #+# #+# */
/* Updated: 2024/11/16 15:22:38 by gaaraujo ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalpha(int c)
{
int is_lowercase;
int is_uppercase;
is_lowercase = c >= 'a' && c <= 'z';
is_uppercase = c >= 'A' && c <= 'Z';
return (is_lowercase || is_uppercase);
}