/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* env.h :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: lderidde +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/01/28 10:11:07 by lderidde #+# #+# */ /* Updated: 2025/02/03 13:09:33 by lderidde ### ########.fr */ /* */ /* ************************************************************************** */ #ifndef ENV_H # define ENV_H # include # include # include typedef struct s_msh t_msh; //VAR int count_var(char **envp); int get_var_index(char *key, t_msh *msh); void free_null_ptr(void *ptr); char **copy_env_var(char **envp, int count); char *get_var_value(char *key, char **envp); bool is_valid_key(char *key, t_msh *msh); int remove_env_var(char *key, t_msh *msh); void set_var_env(char *key, char *value, t_msh *msh); char **init_env(char **envp); #endif