summaryrefslogtreecommitdiffstats
path: root/src/p_split.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/p_split.c')
-rw-r--r--src/p_split.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/p_split.c b/src/p_split.c
index 25f1cc7..482bc58 100644
--- a/src/p_split.c
+++ b/src/p_split.c
@@ -211,6 +211,15 @@ static t_split
return (sp);
}
+static char
+**p_get_words(const char line[], const t_split sp)
+{
+ char **words;
+
+ words = NULL;
+ return (words);
+}
+
char
**p_split_line(char line[])
{
@@ -219,6 +228,11 @@ char
words = NULL;
sp = p_fill_sp(line);
+ if ((words = p_get_words(line, sp)) == NULL)
+ {
+ ft_memdel((void*)&line);
+ return (NULL);
+ }
ft_memdel((void*)&line);
return (words);
}