This commit is contained in:
hugodu69
2020-06-29 23:46:10 +02:00
parent 00e582e8a2
commit 5a3f4ed84b
2 changed files with 4 additions and 2 deletions

2
main.c
View File

@@ -28,7 +28,7 @@ int ft_printf(char *string, ...);
/* 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); \
ftpout = ft_printf(string, ##args); \
write(1, "a", 1);\
if (ftpout == -1) printf("\033[91mERROR\033[0m"); \
fflush(stdout); \

View File

@@ -1,6 +1,8 @@
#include <stdio.h>
int ft_printf(char *string, ...);
int main(void)
{
printf("%s\n", NULL);
ft_printf("%s\n", NULL);
}