libft/ft_isdigit.c
Raphaël 7bd66aee5b
Push libft
125/100 corrected the 14/11/23
2023-11-14 13:31:56 +01:00

20 lines
992 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isdigit.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/06 12:44:28 by rparodi #+# #+# */
/* Updated: 2023/11/07 10:35:36 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_isdigit(int c)
{
if (c >= '0' && c <= '9')
return (c);
return (0);
}