#include <unistd.h>

int	ft_str_is_numeric(char *str)
{
	while (*str != '\0')
	{
		if (*str >= 48 && *str <= 57)
			str++;
		else
			return (0);
	}
	return (1);
}

int	main(void)
{
	char	str[] = "0123456789";

	if (ft_str_is_numeric(str))
	write(1, "1", 1);
	else
	write(1, "0", 1);
	return (0);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: