libftx/libft/ft_isascii.c

19 lines
970 B
C
Raw Permalink Normal View History

2023-01-19 11:33:26 -05:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 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);
}