42sh 1.0.0
Create a shell in C
|
The file containing the history builtins. More...
#include "../../include/myshell.h"
Functions | |
int | my_str_is_valid (char const *str) |
Check if a string is valid to be an environment variable. | |
int | set_new_env_var (mysh_t *mysh, char *var, char *value) |
Set a new environment variable. | |
int | exec_setenv (mysh_t *mysh) |
The setenv builtin. | |
The file containing the history builtins.
The file containing the setenv builtin.
int exec_setenv | ( | mysh_t * | mysh | ) |
The setenv builtin.
mysh | The shell structure |
int my_str_is_valid | ( | char const * | str | ) |
Check if a string is valid to be an environment variable.
str | The string to check |
int set_new_env_var | ( | mysh_t * | mysh, |
char * | var, | ||
char * | value ) |
Set a new environment variable.
mysh | The shell structure |
var | The variable name |
value | The variable value |