#include <stdio.h>

int	ft_isdigit(int c)
{
	if ((c >= '0' && c <= '9'))
	{
		return (1);
	}
	else
	{
		return (0);
	}
}

int	main(void)
{
	char	c;

	c = 'u';
	if (ft_isdigit(c))
	{
		printf("Le caractere (%c) est bien un nombre", c);
	}
	else
	{
		printf("Le caractere (%c) n'est pas un nombre", c);
	}
	printf("\n");
	return (0);
}

Embed on website

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