merging
This commit is contained in:
@@ -6,14 +6,13 @@
|
||||
/* By: lderidde <lderidde@student.s19.be> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/01/28 10:11:07 by lderidde #+# #+# */
|
||||
/* Updated: 2025/01/28 10:31:54 by lderidde ### ########.fr */
|
||||
/* Updated: 2025/02/03 13:09:33 by lderidde ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#ifndef ENV_H
|
||||
# define ENV_H
|
||||
|
||||
# include "../lib/libft/libft.h"
|
||||
# include "../minishell.h"
|
||||
# include <unistd.h>
|
||||
# include <stdlib.h>
|
||||
@@ -21,13 +20,13 @@
|
||||
|
||||
//VAR
|
||||
int count_var(char **envp);
|
||||
int get_var_index(char *key, t_ast_n *head);
|
||||
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_ast_n *head);
|
||||
int remove_env_var(char *key, t_ast_n *head);
|
||||
void set_var_env(char *key, char *value, t_ast_n *head);
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user