42_minitalk/libftx/libft/ft_isascii.c
2023-01-23 13:22:30 +01:00

19 lines
970 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/09/26 11:57:55 by cchauvet #+# #+# */
/* Updated: 2022/09/26 13:33:50 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
int ft_isascii(int c)
{
if (c >= 0 && 127 >= c)
return (1);
return (0);
}