ps_stop fonctionne

This commit is contained in:
hugogogo
2021-06-11 20:56:15 +02:00
parent 9ddf8ab304
commit 1993a9a85d
11 changed files with 33 additions and 25 deletions

View File

@@ -15,12 +15,12 @@ void ps_error(int err)
exit(0);
}
void stop(t_stack *stack_a, t_stack *stack_b, t_list *solution, int err)
void ps_stop(t_stack *stack_a, t_stack *stack_b, t_list *solution, int err)
{
if (stack_a)
ft_lstclear((t_list)&stack_a, NULL);
ft_lstclear((t_list **)&stack_a, NULL);
if (stack_b)
ft_lstclear((t_list)&stack_b, NULL);
ft_lstclear((t_list **)&stack_b, NULL);
if (solution)
ft_lstclear(&solution, free);
ps_error(err);