diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-22 21:40:32 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-22 21:40:32 +0200 |
commit | aa988e7d6a789a88f74651df4468c9b480489387 (patch) | |
tree | 7d01712cca13c44708fe726b73fbb85615af1ce9 /src/ft_s_struct.h | |
parent | I'll finish export later (diff) | |
download | 42-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_struct.h')
-rw-r--r-- | src/ft_s_struct.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ft_s_struct.h b/src/ft_s_struct.h index 1f062c2..cccfaca 100644 --- a/src/ft_s_struct.h +++ b/src/ft_s_struct.h @@ -16,10 +16,21 @@ #include <stdint.h> #include "ft_d_define.h" +/* +** redir(int8_t) index +** -------------------- +** -1: < +** 1: > +** 2: >> +** 0: means no redirection +*/ + typedef struct s_lcom { char *com; char **args; + int8_t redir; + char *rdrpath; struct s_lcom *next; } t_lcom; |