ft_strace/libft/ft_isascii.c

18 lines
969 B
C
Executable file

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isascii.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: thrieg <thrieg@student.42mulhouse.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/14 15:10:04 by thrieg #+# #+# */
/* Updated: 2025/02/16 19:03:43 by thrieg ### ########.fr */
/* */
/* ************************************************************************** */
int ft_isascii(int c)
{
if (c >= 0 && c < 128)
return (1);
return (0);
}