aboutsummaryrefslogtreecommitdiff
path: root/include/env.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/env.h')
-rw-r--r--include/env.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/include/env.h b/include/env.h
index 1ea6f2e..5a65333 100644
--- a/include/env.h
+++ b/include/env.h
@@ -3,21 +3,20 @@
/* ::: :::::::: */
/* env.h :+: :+: :+: */
/* +:+ +:+ +:+ */
-/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
+/* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/08 16:53:39 by dkaiser #+# #+# */
-/* Updated: 2024/08/08 17:05:11 by dkaiser ### ########.fr */
+/* Updated: 2024/10/17 15:37:32 by chuhlig ### ########.fr */
/* */
/* ************************************************************************** */
-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;
+
+void getenvlst(t_env **env, char **en);
+void free_envlst(t_env **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);