#include "data_structure.h"
Go to the source code of this file.
Functions | |
int | ft_exit (t_data *data, char **array) |
Function to exit the program. | |
int | ft_echo (t_data *data, char **array) |
Echo with -n option OPTIONS : -n : print without the triling newline. | |
int | ft_which (t_data *data, char **array) |
Says if the command are built-in commands or not. | |
int | ft_export (t_data *data, char **array) |
int | ft_env (t_data *data, char **array) |
int | ft_unset (t_data *data, char **array) |
int | ft_pwd (t_data *data, char **array) |
Print the current working directory. | |
int | ft_cd (t_data *data, char **array) |
Implementatin of cd builtin of shell. | |
void | ft_exit_int (t_garbage *garbage, int value) |
Short ft_exit that uses only int noreturn attribute is to prevent -Wmissing-noreturn flag from flag -Weverything of debug-cc. | |
void | ft_exit_int_np (t_garbage *garbage, int value) |
Short ft_exit that uses only int but don't say it's name. | |
void | change_cwd (t_data *data, t_bool is_pwd) |
Change the values of ENV VAR. | |
int | change_cwd_to_home (t_env_vars *env) |
int | change_cwd_to_previous_cwd (t_env_vars *env) |