-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_isalpha.c
18 lines (17 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lgasc <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/01 14:48:14 by lgasc #+# #+# */
/* Updated: 2023/02/12 00:32:42 by lgasc ### ########.fr */
/* */
/* ************************************************************************** */
/** @remark This function aims to replicate the `libc` function `isalpha`. */
int ft_isalpha(int character)
{
return (('A' <= character && character <= 'Z')
|| ('a' <= character && character <= 'z'));
}