summaryrefslogtreecommitdiffstats
path: root/src/p_args.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/p_args.c')
-rw-r--r--src/p_args.c25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/p_args.c b/src/p_args.c
index 6b285da..d8ca029 100644
--- a/src/p_args.c
+++ b/src/p_args.c
@@ -14,16 +14,39 @@
#include <stdint.h>
#include <stdlib.h>
+/* ================= */
+/* TODO: DELETE THIS */
+/* ================= */
+
+static void
+p_print(char *words[])
+{
+ char **ptr;
+
+ ptr = words;
+ while (*ptr != NULL)
+ {
+ ft_printf("[%s]\n", *ptr);
+ ptr++;
+ }
+}
+
+/* ================== */
+/* TODO: DELETE ABOVE */
+/* ================== */
+
char
**p_split_args(const char word[], int8_t redir)
{
char **words;
- (void)word;
+ ft_printf("word at start: [%s]\n", word);
if (redir == 0)
{
+ p_print(words);
return (words);
}
+ p_print(words);
return (words);
/* char **words; */
/* char *subst; */