libft/ft_isascii.c

20 lines
980 B
C
Raw Permalink Normal View History

2024-10-14 15:01:01 +02:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kcolin <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/14 14:57:45 by kcolin #+# #+# */
/* Updated: 2024/10/14 15:00:06 by kcolin ### ########.fr */
/* */
/* ************************************************************************** */
int ft_isascii(int c)
{
if (c >= 0x0 && c <= 0x7f)
return (1);
else
return (0);
}