pile b ne fonctionne pas
This commit is contained in:
13
srcs/swap.c
13
srcs/swap.c
@@ -12,7 +12,18 @@ t_list *sa(t_stack **stack, t_list **solution)
|
||||
tmp = a->n;
|
||||
a->n = a->next->n;
|
||||
a->next->n = tmp;
|
||||
fill_solution(*stack, NULL, solution, ft_strdup("sa"));
|
||||
fill_solution(solution, ft_strdup("sa"));
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
t_list *sb(t_stack **b, t_list **solution)
|
||||
{
|
||||
return (sa(b, solution));
|
||||
}
|
||||
|
||||
t_list *ss(t_stack **a, t_stack **b, t_list **solution)
|
||||
{
|
||||
sa(a, solution);
|
||||
sa(b, solution);
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user