summaryrefslogtreecommitdiffstats
path: root/src/ft_b_env.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-20 22:24:25 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-20 22:24:25 +0200
commitfe24a254415b38952eeef8f0ca4e830549360850 (patch)
treef51808f7ed9ccc7840878de4d1c9d5408c6eaa45 /src/ft_b_env.c
parentWrong address (diff)
download42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.tar.gz
42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.tar.bz2
42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.tar.xz
42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.tar.zst
42-minishell-fe24a254415b38952eeef8f0ca4e830549360850.zip
Pretty good start
Diffstat (limited to 'src/ft_b_env.c')
-rw-r--r--src/ft_b_env.c13
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);
}