]> git.dkaiser.de - 42/minishell.git/commitdiff
Merge branch 'main' into env
authorcuhlig <113346209+cuhlig42@users.noreply.github.com>
Thu, 17 Oct 2024 12:34:33 +0000 (14:34 +0200)
committerGitHub <noreply@github.com>
Thu, 17 Oct 2024 12:34:33 +0000 (14:34 +0200)
1  2 
include/env.h

diff --cc include/env.h
index 1ea6f2e5d283d50f4f72b448bb397375f484f58f,f3d3c7536502b842a502b122ea9d36115c0a2267..12d8db0b7ee1c057456aba66b496e8332c9fd45a
  /*                                                                            */
  /* ************************************************************************** */
  
- typedef struct s_env {
-     char *name;
-     char *value;
-     struct s_env *next;
- } t_env;
+ typedef struct s_env
+ {
+       char                    *name;
+       char                    *value;
+       struct s_env    *next;
+ }                                     t_env;
+ char                          *env_get(t_env *env, char *name);
+ void                          env_export(t_env *env, char *name, char *value);
+ void                          env_unset(t_env *env, char *name);
+ char                          **env_to_strlst(t_env *env);
+ t_env                         **env_from_strlst(char **lst);
 +
- char *env_get(t_env *env, char *name);
- void env_export(t_env *env, char *name, char *value);
- void env_unset(t_env *env, char *name);
- char **env_to_strlst(t_env *env);
- t_env **env_from_strlst(char **lst);