resolution null pointer

This commit is contained in:
Hugo LAMY
2020-06-30 00:42:00 +02:00
parent 5a3f4ed84b
commit e34dd031c1
3 changed files with 3 additions and 5 deletions

2
main.c
View File

@@ -27,9 +27,7 @@ int ft_printf(char *string, ...);
/* redirect output to file outft, and write result of ft_printf inside it */\
/* also compare return of both printf and ft_printf, pout and ftpout */\
dup2(outft, 1); \
printf("_x_%s_x_",##args);\
ftpout = ft_printf(string, ##args); \
write(1, "a", 1);\
if (ftpout == -1) printf("\033[91mERROR\033[0m"); \
fflush(stdout); \
printf("\n"); \