summaryrefslogtreecommitdiffstats
path: root/src/ft_p_lcom.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-22 23:56:52 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-22 23:56:52 +0200
commit04e558ff314dfe8bdac7ea1139e9caf9b063f855 (patch)
treeb4c06d52569d568a50bfce9be5d2f4738cb82671 /src/ft_p_lcom.c
parentGathering rdrpath successfully (diff)
download42-minishell-04e558ff314dfe8bdac7ea1139e9caf9b063f855.tar.gz
42-minishell-04e558ff314dfe8bdac7ea1139e9caf9b063f855.tar.bz2
42-minishell-04e558ff314dfe8bdac7ea1139e9caf9b063f855.tar.xz
42-minishell-04e558ff314dfe8bdac7ea1139e9caf9b063f855.tar.zst
42-minishell-04e558ff314dfe8bdac7ea1139e9caf9b063f855.zip
Good
Diffstat (limited to 'src/ft_p_lcom.c')
-rw-r--r--src/ft_p_lcom.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/ft_p_lcom.c b/src/ft_p_lcom.c
index 9a4ebad..5890b0f 100644
--- a/src/ft_p_lcom.c
+++ b/src/ft_p_lcom.c
@@ -16,10 +16,11 @@
#include "ft_s_lcom.h"
#include "ft_s_struct.h"
-/* void */
-/* ft_check_redir_file() */
-/* { */
-/* } */
+void
+ ft_check_redir_file()
+{
+
+}
static void
ft_rdr_err_check(char *ptr,
@@ -59,7 +60,7 @@ static int8_t
}
ptr++;
}
- *(p_rdrpath) = '\0';
+ *p_rdrpath = '\0';
return (0);
}
@@ -84,6 +85,7 @@ int8_t
}
ptr++;
/* TODO: handle correctly multiples "msh ~> echo qwe > qwe > asd >> zxc > qweasdzxc" */
+ /* hint: bash only handles the last onke */
}
if ((*link)->redir != 0)
{