|
maxishell
Implementation of a shell for Linux-like systems
|
#include "shell.h"#include "env.h"#include "libft.h"#include <stddef.h>#include <stdlib.h>#include <stdio.h>
Go to the source code of this file.
Functions | |
| void | set_shell_var (t_env **shell_var, const char *key, const char *value) |
| void | add_shell_var_node (t_env **shell_var, const char *line) |
| char * | get_shell_variable (t_env *shell_var, const char *key) |
| void | free_shell_var_list (t_env *shell_var) |
| void add_shell_var_node | ( | t_env ** | shell_var, |
| const char * | line | ||
| ) |
Definition at line 26 of file shell_variables_utils.c.
References ft_strcdup(), ft_strchr(), ft_strdup(), s_env::key, s_env::next, and s_env::value.
Referenced by handle_add_set_shell_variable().


| void free_shell_var_list | ( | t_env * | shell_var | ) |
Definition at line 90 of file shell_variables_utils.c.
References s_env::key, s_env::next, and s_env::value.
Referenced by free_ms_data().

| char * get_shell_variable | ( | t_env * | shell_var, |
| const char * | key | ||
| ) |
Definition at line 76 of file shell_variables_utils.c.
References ft_strcmp(), s_env::key, s_env::next, and s_env::value.
Referenced by get_exit_status().


| void set_shell_var | ( | t_env ** | shell_var, |
| const char * | key, | ||
| const char * | value | ||
| ) |
Definition at line 53 of file shell_variables_utils.c.
References ft_strcmp(), ft_strdup(), s_env::key, s_env::next, and s_env::value.
Referenced by builtin_env(), handle_add_set_shell_variable(), init_ms_data(), set_shell_var_handler(), and shell_variable_update().

