|
42sh 1.0.0
Create a shell in C
|
The file containing the exit builtin. More...
#include "../../include/myshell.h"Functions | |
| void * | free_str_and_tab (char *str, char **tab) |
| Free an string and his array. | |
| void | free_input_list (mysh_t *mysh) |
| Free the input list. | |
| void | my_exit (mysh_t *mysh, unsigned char status, char const *message) |
| Free the shell structure and exit the shell. | |
| int | exec_exit (mysh_t *mysh) |
| The exit builtin. | |
The file containing the exit builtin.
| int exec_exit | ( | mysh_t * | mysh | ) |
The exit builtin.
| mysh | The shell structure |
| void free_input_list | ( | mysh_t * | mysh | ) |
Free the input list.
| mysh | The shell structure |
| void * free_str_and_tab | ( | char * | str, |
| char ** | tab ) |
Free an string and his array.
| str | The string to free |
| tab | The array of the string to free |
| void my_exit | ( | mysh_t * | mysh, |
| unsigned char | status, | ||
| char const * | message ) |
Free the shell structure and exit the shell.
| mysh | The shell structure |
| status | The exit status |
| message | The message to display |