#include <unistd.h>
void ft_putchar(char c)
{
write (1, &c, 1);
}
#include <stdio.h>
int main(void)
{
char c;
c = 'X';
ft_putchar(c); // Utilise ft_putchar pour afficher 'X'
/*printf("%c\n", ft_putchar(c)); NE FONCTIONNE PAS CAR
JE FAIT APPELE A Ft_putchar mais vue que void elle ne retoure rien d'ou le message d'erreur
error: invalid use of void expression printf("%c\n", ft_putchar(c)); */
// pour tester il faut ecire
printf("\n%c\n", c); // Utilise printf pour afficher 'X' avec un saut de ligne
return (0);
}
To embed this project on your website, copy the following code and paste it into your website's HTML: