verif flag dans launch algo
This commit is contained in:
BIN
builds/algo.o
BIN
builds/algo.o
Binary file not shown.
Binary file not shown.
BIN
builds/print.o
BIN
builds/print.o
Binary file not shown.
BIN
builds/push.o
BIN
builds/push.o
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
builds/rotate.o
BIN
builds/rotate.o
Binary file not shown.
BIN
builds/stop.o
BIN
builds/stop.o
Binary file not shown.
BIN
builds/swap.o
BIN
builds/swap.o
Binary file not shown.
@@ -35,8 +35,10 @@ t_stack *init_stack(int ac, char **av)
|
|||||||
return (start);
|
return (start);
|
||||||
}
|
}
|
||||||
|
|
||||||
// the chained list "solution" is created with specials first two elements :
|
/*
|
||||||
// they are pointers to stack a and b, so it can be accessed by fill_solution()
|
** the chained list "solution" is created with specials first two elements :
|
||||||
|
** they are pointers to stack a and b, so it can be accessed by fill_solution()
|
||||||
|
*/
|
||||||
t_list *launch_algo(t_stack **a, t_stack **b, int flag)
|
t_list *launch_algo(t_stack **a, t_stack **b, int flag)
|
||||||
{
|
{
|
||||||
t_list *solution;
|
t_list *solution;
|
||||||
|
|||||||
Reference in New Issue
Block a user