From 8a76ac02fb0f550244272eab5ed0d0aabcad4523 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 23 Apr 2020 13:39:12 +0200 Subject: Qwe --- src/ft_e_lcom.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ft_e_lcom.c b/src/ft_e_lcom.c index 677a2a1..3468954 100644 --- a/src/ft_e_lcom.c +++ b/src/ft_e_lcom.c @@ -55,7 +55,8 @@ uint8_t ft_printf("[%hhd] [%s]\n", ptr->redir, ptr->rdrpath); if (ptr->redir == 1) { - if ((fd = open(ptr->rdrpath, O_CREAT | O_TRUNC | O_WRONLY, 0644))) + if ((fd = open(ptr->rdrpath, + O_CREAT | O_TRUNC | O_WRONLY, 0644))) { /* TODO: handle err with errno */ } @@ -64,7 +65,8 @@ uint8_t } else if (ptr->redir == 2) { - if ((fd = open(ptr->rdrpath, O_CREAT | O_APPEND | O_WRONLY, 0644))) + if ((fd = open(ptr->rdrpath, + O_CREAT | O_APPEND | O_WRONLY, 0644))) { /* TODO: handle err with errno */ } @@ -89,7 +91,7 @@ uint8_t } else { - /* TODO: exec $PATH stuff */ + /* TODO: exec $PATH stuff | initiate all builtins first, even uncomplete */ } ptr = ptr->next; } -- cgit v1.2.3