/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* cmd.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cchauvet args != NULL) ft_freer_tab_ultimate(1, content->args); if (content->executable != NULL) free(content->executable); free(content); } int ft_cmd_filler(t_list *element, char **args) { t_cmd *content; size_t i; if (args == NULL) return (1); content = (t_cmd *)element->content; i = 0; while (args[i] != NULL) { ft_quote_remover(args[i]); i++; } content->args = args; content->executable = args[0]; return (0); }