diff options
| author | Christopher Uhlig | 2025-01-13 11:06:54 +0100 |
|---|---|---|
| committer | Christopher Uhlig | 2025-01-13 11:06:54 +0100 |
| commit | 78dc50a2bce3c6e31405437189e2990d8fc720ac (patch) | |
| tree | d61d9f0d279e191c1bfb34929908f412cf58c02d /include/env.h | |
| parent | ae5512ea0d6d8be833ca3a9b39f93239109f45b4 (diff) | |
| download | minishell-78dc50a2bce3c6e31405437189e2990d8fc720ac.tar.gz minishell-78dc50a2bce3c6e31405437189e2990d8fc720ac.zip | |
here
Diffstat (limited to 'include/env.h')
| -rw-r--r-- | include/env.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/include/env.h b/include/env.h index 5a65333..d38ed29 100644 --- a/include/env.h +++ b/include/env.h @@ -6,10 +6,15 @@ /* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/08/08 16:53:39 by dkaiser #+# #+# */ -/* Updated: 2024/10/17 15:37:32 by chuhlig ### ########.fr */ +/* Updated: 2024/12/24 16:21:50 by chuhlig ### ########.fr */ /* */ /* ************************************************************************** */ +#ifndef ENV_H +# define ENV_H +# include "libft.h" +# include <stdio.h> + typedef struct s_env { char *name; @@ -19,4 +24,15 @@ typedef struct s_env void getenvlst(t_env **env, char **en); void free_envlst(t_env **env); +char *env_get(t_env *env, char *name); +char **env_to_strlst(t_env *env); +void update_oldpwd(t_env **env); +void update_pwd(t_env **env); +int unset(char **av, t_env **env); +int export(char **av, t_env **env); +int echo(char **av); +int pwd(t_env *env); +int cd(t_env **env, char **args); +int ft_env(t_env *env); +#endif
\ No newline at end of file |
