28 lines
1.4 KiB
C
28 lines
1.4 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* :::::::: */
|
|
/* environment.h :+: :+: */
|
|
/* +:+ */
|
|
/* By: whaffman <whaffman@student.codam.nl> +#+ */
|
|
/* +#+ */
|
|
/* Created: 2025/02/04 16:26:35 by whaffman #+# #+# */
|
|
/* Updated: 2025/02/11 15:39:15 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_list(t_list **environment);
|
|
int environment_parse(char **envp, t_list **environment);
|
|
char **environment_get_arr(t_list *environment);
|
|
void environment_del(t_list **environment, char *name);
|
|
void environment_free(void *content);
|
|
|
|
#endif // ENVIRONMENT_H
|