mise en place de l'algrithme
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user