mise en place de l'algrithme

This commit is contained in:
hugogogo
2021-06-12 02:20:56 +02:00
parent 1993a9a85d
commit ca0bf0cb61
7 changed files with 77 additions and 9 deletions

View File

@@ -23,6 +23,9 @@ void ps_stop(t_stack *stack_a, t_stack *stack_b, t_list *solution, int err)
ft_lstclear((t_list **)&stack_b, NULL);
if (solution)
ft_lstclear(&solution, free);
ps_error(err);
if (err < 0)
return ;
else if (err > 0)
ps_error(err);
exit(0);
}