42_libft/ft_isalpha.c
Camille Chauvet 1d0f0b1901 m
2022-09-27 16:29:23 +02:00

21 lines
1020 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/09/26 11:15:04 by cchauvet #+# #+# */
/* Updated: 2022/09/27 11:04:58 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalpha(int c)
{
if (('z' >= c && c >= 'a') || ('Z' >= c && c >= 'A'))
return (1);
return (0);
}