32 if (data->
args == NULL || data->
args[1] == NULL)
42 "[name[=value] ...] or export -p", STDERR_FILENO);
66 curr_node = curr_node->
next;
79 while (data->
args[++i])
83 curr_arg = data->
args[i];
91 curr_arg = data->
args[i];
void set_env(t_env **env, const char *key, const char *value)
char * ft_strcdup(const char *s, int c)
void exit_status_handler(t_ms_data *data, int status_code, char *err_arg)
static void add_env(t_ms_data *data)
static void print_env(t_env *env)
int builtin_export(t_ms_data *data)
int ft_printf(const char *format,...)
int ft_strcmp(const char *s1, const char *s2)
char * ft_strjoin(char const *s1, char const *s2)
char * ft_strchr(const char *s, int c)
void ft_putendl_fd(char *s, int fd)