#include <stdio.h>
int ft_isprint(int c)
{
if (c >= 32 && c <= 126)
{
return (1);
}
else
{
return (0);
}
}
int main(void)
{
int c;
c = 127;
if (ft_isprint(c))
{
printf("Le caractere %d est bien un caractere imprimable ASCII", c);
}
else
{
printf("Le caractere %d n'est pas un caractere imprimable 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: