pile b ne fonctionne pas

This commit is contained in:
hugogogo
2021-06-15 02:54:06 +02:00
parent 825b82905b
commit aeb5b57725
21 changed files with 110 additions and 13 deletions

View File

@@ -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);
}