1
0
cub3d/libft/is/ft_isdigit.c

21 lines
992 B
C
Raw Normal View History

2024-09-10 16:27:06 +02:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: madumerg <madumerg@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/30 12:47:04 by madumerg #+# #+# */
/* Updated: 2024/02/06 13:04:37 by madumerg ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isdigit(int i)
{
if (i >= '0' && i <= '9')
return (1);
return (0);
}