#include <stdio.h>
int ft_isascii(int c)
{
if (c >= 0 && c <= 127)
{
return (1);
}
else
{
return (0);
}
}
int main(void)
{
int c;
c = 127;
if (ft_isascii(c))
{
printf("Le caractere %d est bien un caractere ASCII", c);
}
else
{
printf("Le caractere %d n'est pas un caractere ASCII", c);
}
printf("\n");
return (0);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: