maxishell
Implementation of a shell for Linux-like systems
|
Go to the source code of this file.
Functions | |
char * | ft_remove_all_edge_quotes (char *str, char quote_type) |
static char * | remove_quotes (const char *value) |
void | add_new_env (t_env **env, const char *key, char *modified_value) |
void | set_env (t_env **env, const char *key, const char *value) |
void add_new_env | ( | t_env ** | env, |
const char * | key, | ||
char * | modified_value | ||
) |
Definition at line 31 of file utils_utils.c.
References ft_strdup(), s_env::key, s_env::next, and s_env::value.
Referenced by set_env().
char * ft_remove_all_edge_quotes | ( | char * | str, |
char | quote_type | ||
) |
Definition at line 24 of file env.c.
References ft_strdup(), ft_strlen(), and ft_strndup().
Referenced by remove_quotes().
|
static |
Definition at line 20 of file utils_utils.c.
References ft_remove_all_edge_quotes().
Referenced by set_env().
void set_env | ( | t_env ** | env, |
const char * | key, | ||
const char * | value | ||
) |
Definition at line 44 of file utils_utils.c.
References add_new_env(), ft_strcmp(), ft_strdup(), s_env::key, s_env::next, remove_quotes(), and s_env::value.
Referenced by add_env(), builtin_cd(), test_set_env(), and test_unset_env().