en cours de debuggage pour le probleme de free

This commit is contained in:
hugogogo
2021-06-15 23:33:29 +02:00
parent 8121128ad5
commit 924645e71c
16 changed files with 84 additions and 12 deletions

View File

@@ -62,10 +62,11 @@ t_list *launch_algo(t_stack *a)
t_list *solution;
b = NULL;
solution = NULL;
ft_lstadd_back(&solution, ft_lstnew(&a));
solution = ft_lstnew(&a);
ft_lstadd_back(&solution, ft_lstnew(&b));
print_test(solution, "launch_algo ");
fill_solution(solution, ft_strdup("start"));
print_test(solution, "launch_algo (after fill) ");
hugo_sort(&a, &b, solution);
//bubble_sort(&a, &b, solution);
return (solution);
@@ -89,6 +90,9 @@ int main(int ac, char **av)
flag = check_flag(&ac, &av);
stack = init_stack(ac, av);
result = launch_algo(stack);
print_test(result, "main ");
//sa(&stack, &result);
print_result(result, flag);
ps_stop(NULL, result, 0);
return(0);