debugage de dup stack a

This commit is contained in:
hugogogo
2021-06-26 23:36:24 +02:00
parent 1d85935cf9
commit 337c28227d
17 changed files with 47 additions and 57 deletions

View File

@@ -23,7 +23,6 @@ void fill_solution(t_list *solution, char *sp)
t_stack *b;
char *stack;
print_test(solution, "fill_solution (beginning)");
tmp1 = solution->content;
tmp2 = solution->next->content;
a = *tmp1;
@@ -43,16 +42,13 @@ print_test(solution, "fill_solution (beginning)");
stack = ft_strjoinfree(stack, ft_itoa(b->n));
b = b->next;
}
print_test(solution, "fill_solu. (bfr add_back)");
ft_lstadd_back(&solution, ft_lstnew(stack));
print_test(solution, "fill_solu. (aft add_back)");
}
void print_result(t_list *result, int flag)
{
char **part;
print_test(result, "print result ");
result = result->next->next;
while (result)
{