summaryrefslogtreecommitdiffstats
path: root/src/ft_s_lcom.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-22 21:40:32 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-22 21:40:32 +0200
commitaa988e7d6a789a88f74651df4468c9b480489387 (patch)
tree7d01712cca13c44708fe726b73fbb85615af1ce9 /src/ft_s_lcom.c
parentI'll finish export later (diff)
download42-minishell-aa988e7d6a789a88f74651df4468c9b480489387.tar.gz
42-minishell-aa988e7d6a789a88f74651df4468c9b480489387.tar.bz2
42-minishell-aa988e7d6a789a88f74651df4468c9b480489387.tar.xz
42-minishell-aa988e7d6a789a88f74651df4468c9b480489387.tar.zst
42-minishell-aa988e7d6a789a88f74651df4468c9b480489387.zip
Starting to do redirections
Diffstat (limited to 'src/ft_s_lcom.c')
-rw-r--r--src/ft_s_lcom.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ft_s_lcom.c b/src/ft_s_lcom.c
index 67ad6a9..7a72378 100644
--- a/src/ft_s_lcom.c
+++ b/src/ft_s_lcom.c
@@ -13,6 +13,7 @@
#include <libft.h>
#include <stdlib.h>
#include <stdint.h>
+#include "ft_p_lcom.h"
#include "ft_s_struct.h"
static int8_t
@@ -100,8 +101,13 @@ t_lcom
if (!(link = (t_lcom*)malloc(sizeof(t_lcom))))
return (NULL);
+ link->redir = 0;
+ link->com = NULL;
+ link->args = NULL;
+ link->rdrpath = NULL;
if (!(words = ft_split(word, ' ')))
return (NULL);
+ /* TODO: redirections here */
if (ft_fill_lcom(words, &link) < 0)
{
ft_delwords(words);