From 757801bea2d236148e061324716425fc0e6aa686 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 3 Sep 2020 19:09:05 +0200 Subject: In progress --- src/p_args_next.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/p_args_next.c') diff --git a/src/p_args_next.c b/src/p_args_next.c index 28410cd..4d7f979 100644 --- a/src/p_args_next.c +++ b/src/p_args_next.c @@ -71,10 +71,22 @@ static char ft_strlcpy(tmp, word + start[i], (p_arg_len(word, start[i]) - start[i]) + 1); - /* TODO: remove quotes */ return (tmp); } +void + p_del_alloced_words(char *words[], uint16_t to_del) +{ + uint16_t i; + + i = 0; + while (i < to_del) + { + ft_memdel((void*)&words[i]); + i++; + } +} + uint16_t p_dup_words(char *words[], const char word[], -- cgit v1.2.3