From a2dc5174eb19caebf074b446dae129d17485e7bb Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 14 Aug 2020 20:50:57 +0200 Subject: && and || works pretty bav --- src/p_line.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'src/p_line.c') diff --git a/src/p_line.c b/src/p_line.c index 23a3896..6e02525 100644 --- a/src/p_line.c +++ b/src/p_line.c @@ -24,25 +24,7 @@ void p_line(char line[], t_msh *msh) { - char *ptr; - uint64_t count; - - count = 0; - ptr = line; - while (*ptr != '\0') - { - - if (*ptr == ';') - { - count += 1; - } - ptr++; - } - if (*(ptr - 1) == ';') - { - count -= 1; - } - if (p_lcom(line, count, msh) < 0) + if (p_lcom(line, msh) < 0) { f_alloc_and_destroy_msh(msh); } -- cgit v1.2.3