diff options
Diffstat (limited to 'src/ft_b_env.c')
-rw-r--r-- | src/ft_b_env.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/ft_b_env.c b/src/ft_b_env.c index e3aa710..4f26788 100644 --- a/src/ft_b_env.c +++ b/src/ft_b_env.c @@ -16,12 +16,17 @@ #include "ft_s_struct.h" int32_t - ft_b_env(t_msh *msh) + ft_b_env(char *args[], + t_msh *msh) { - while (*msh->envp) + char **ptr; + + (void)args; + ptr = msh->envp; + while (*ptr) { - ft_printf("%s\n", *msh->envp); - msh->envp++; + ft_printf("%s\n", *ptr); + ptr++; } return (0); } |