maxishell
Implementation of a shell for Linux-like systems
|
Go to the source code of this file.
Functions | |
char ** | env_to_array (t_env *envp) |
char * | ft_strcdup (const char *s, int c) |
void | free_env (t_env *envp) |
void | print_t_env (t_env *tokens) |
char ** env_to_array | ( | t_env * | envp | ) |
Definition at line 23 of file utils.c.
References ft_strjoin(), s_env::key, s_env::next, and s_env::value.
Referenced by handle_exec_errors(), and test_init_env().
void free_env | ( | t_env * | envp | ) |
Definition at line 73 of file utils.c.
References s_env::key, s_env::next, and s_env::value.
Referenced by env_tests().
char * ft_strcdup | ( | const char * | s, |
int | c | ||
) |
Definition at line 52 of file utils.c.
Referenced by add_env(), add_shell_var_node(), and handle_add_set_shell_variable().
void print_t_env | ( | t_env * | tokens | ) |
Definition at line 89 of file utils.c.
References ft_printf(), s_env::key, s_env::next, and s_env::value.