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

19 lines
991 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: grobledo <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/02 17:48:20 by grobledo #+# #+# */
/* Updated: 2023/02/02 17:48:22 by grobledo ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isdigit(int c)
{
if (c >= '0' && c <= '9')
return (1);
return (0);
}