minishell/inc/environment.h
whaffman 869eb0d857 Environment
environment: rename functions
environment: add get_arr function
builtins: add export builtin
2025-02-08 14:43:53 +01:00

26 lines
1.3 KiB
C

/* ************************************************************************** */
/* */
/* :::::::: */
/* environment.h :+: :+: */
/* +:+ */
/* By: whaffman <whaffman@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2025/02/04 16:26:35 by whaffman #+# #+# */
/* Updated: 2025/02/05 12:36:59 by whaffman ######## odam.nl */
/* */
/* ************************************************************************** */
#ifndef environment_H
# define environment_H
# include "minishell.h"
void environment_add(t_list **environment, char *name, char *value);
void environment_print(t_list *environment);
t_environment *environment_get(t_list *environment, char *name);
void environment_free(t_list *environment);
int environment_parse(char **envp, t_list **environment);
char **environment_get_arr(t_list *environment);
#endif // environment_H