libft/srcs/ft_isdigit.c

8 lines
No EOL
111 B
C

#include "libft.h"
int ft_isdigit(int c)
{
if (c >= '0' && c <= '9')
return (1);
return (0);
}