debugage de dup stack a
This commit is contained in:
@@ -16,14 +16,14 @@ void swap(t_stack **stack)
|
||||
t_list *sa(t_stack **a, t_list **solution)
|
||||
{
|
||||
swap(a);
|
||||
fill_solution(*solution, ft_strdup("sa"));
|
||||
fill_solution(*solution, "sa");
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
t_list *sb(t_stack **b, t_list **solution)
|
||||
{
|
||||
swap(b);
|
||||
fill_solution(*solution, ft_strdup("sb"));
|
||||
fill_solution(*solution, "sb");
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
@@ -31,6 +31,6 @@ t_list *ss(t_stack **a, t_stack **b, t_list **solution)
|
||||
{
|
||||
swap(a);
|
||||
swap(b);
|
||||
fill_solution(*solution, ft_strdup("sb"));
|
||||
fill_solution(*solution, "sb");
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user