diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-21 17:26:12 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-21 17:26:12 +0200 |
commit | cc4ede7ead7622c096bc598aad3e10baf93c4350 (patch) | |
tree | b21c1c5137968306462c67542f7e622c11d2a5a7 /src/ft_b_env.c | |
parent | No more leaks (diff) | |
download | 42-minishell-cc4ede7ead7622c096bc598aad3e10baf93c4350.tar.gz 42-minishell-cc4ede7ead7622c096bc598aad3e10baf93c4350.tar.bz2 42-minishell-cc4ede7ead7622c096bc598aad3e10baf93c4350.tar.xz 42-minishell-cc4ede7ead7622c096bc598aad3e10baf93c4350.tar.zst 42-minishell-cc4ede7ead7622c096bc598aad3e10baf93c4350.zip |
Good so far
Diffstat (limited to '')
-rw-r--r-- | src/ft_b_env.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ft_b_env.c b/src/ft_b_env.c index eb3b107..d3df62d 100644 --- a/src/ft_b_env.c +++ b/src/ft_b_env.c @@ -13,15 +13,20 @@ #include <libft.h> #include <stdint.h> #include "ft_b_env.h" +#include "ft_f_fail.h" #include "ft_s_struct.h" -int32_t +uint8_t ft_b_env(char *args[], t_msh *msh) { char **ptr; - (void)args; + if (args[0]) + { + ft_fail_no_options("env"); + return (127); + } ptr = msh->envp; while (*ptr) { |