diff options
Diffstat (limited to 'src/ft_b_env.c')
-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) { |