42_cub3d/Libft/ft_isascii.c
2024-10-09 03:35:09 +02:00

19 lines
989 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: grobledo <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/02 18:20:38 by grobledo #+# #+# */
/* Updated: 2023/02/02 18:20:40 by grobledo ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isascii(int c)
{
if (c >= 0 && c <= 127)
return (1);
return (0);
}