30 lines
1.3 KiB
C
30 lines
1.3 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* :::::::: */
|
|
/* enviroment.h :+: :+: */
|
|
/* +:+ */
|
|
/* By: whaffman <whaffman@student.codam.nl> +#+ */
|
|
/* +#+ */
|
|
/* Created: 2025/02/04 16:26:35 by whaffman #+# #+# */
|
|
/* Updated: 2025/02/04 16:28:59 by whaffman ######## odam.nl */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#ifndef ENVIROMENT_H
|
|
# define ENVIROMENT_H
|
|
|
|
typedef struct s_enviroment
|
|
{
|
|
char *name;
|
|
char *value;
|
|
struct s_enviroment *next;
|
|
} t_enviroment;
|
|
|
|
void add_enviroment(t_enviroment **enviroment, char *name, char *value);
|
|
void print_enviroment(t_enviroment *enviroment);
|
|
char *get_enviroment(t_enviroment *enviroment, char *name);
|
|
void free_enviroment(t_enviroment *enviroment);
|
|
int parse_enviroment(char **envp, t_enviroment **enviroment);
|
|
|
|
#endif // ENVIROMENT_H
|