libft/ft_isalpha.c
2020-12-11 18:42:06 +01:00

22 lines
1020 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/11/29 00:10:17 by apommier #+# #+# */
/* Updated: 2020/12/11 18:11:03 by apommier ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isalpha(int c)
{
if ((c > 64 && c < 90) || (c > 96 && c < 122))
return (1);
else
return (0);
}