summaryrefslogtreecommitdiffstats
path: root/src/p_args_next.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/p_args_next.c14
1 files changed, 13 insertions, 1 deletions
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[],