Files
2025-08-04 13:20:27 +02:00

21 lines
1009 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yantoine <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/07 10:06:07 by yantoine #+# #+# */
/* Updated: 2023/11/08 08:06:49 by hexplor ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isdigit(int c)
{
if ((c >= 48 && c <= 57) || c == 46)
return (1);
else
return (0);
}