21void ft_puterror(
char *err_arg,
char *error_message);
31 error_message =
"No such file or directory";
33 error_message =
"numeric argument required";
35 error_message =
"too many arguments";
37 error_message =
"command not found";
39 error_message =
"invalid argument";
41 error_message =
"permission denied";
43 error_message =
"unset: not a valid identifier";
45 error_message =
"invalid option";
47 error_message =
"error";
81 *exit_status = status_code;
void set_shell_var(t_env **shell_var, const char *key, const char *value)
void exit_status_handler(t_ms_data *data, int status_code, char *err_arg)
void ft_puterror(char *err_arg, char *error_message)
void set_shell_var_handler(t_ms_data *data)
void set_exit_status(int *exit_status, int status_code)
#define NOT_VALID_IDENTIFIER
#define PERMISSION_DENIED
void ft_putstr_fd(char *s, int fd)
void ft_putendl_fd(char *s, int fd)