|
42sh 1.0.0
Create a shell in C
|
The file containing the set builtin. More...
#include "../../include/myshell.h"Functions | |
| int | display_variable (mysh_t *mysh) |
| Print the list of variable if only one argument. | |
| void | add_variable (mysh_t *mysh, char *name, char *value) |
| Add a variable to the list. | |
| int | exec_set (mysh_t *mysh) |
| The set builtin. | |
| char * | get_variable_value (mysh_t *mysh, char *name) |
| Get the value of a variable. | |
The file containing the set builtin.
| void add_variable | ( | mysh_t * | mysh, |
| char * | name, | ||
| char * | value ) |
Add a variable to the list.
| mysh | The shell structure |
| name | The name of the variable |
| value | The value of the variable |
| int display_variable | ( | mysh_t * | mysh | ) |
Print the list of variable if only one argument.
| mysh | The shell structure |
| int exec_set | ( | mysh_t * | mysh | ) |
The set builtin.
| mysh | The shell structure |
| char * get_variable_value | ( | mysh_t * | mysh, |
| char * | name ) |
Get the value of a variable.
| mysh | The shell structure |
| name | The name of the variable |