tgrekov-push_swap
HIVE push_swap July 2024
|
Definition in file main.c.
Go to the source code of this file.
Functions | |
int | input (int argc, char **argv, t_stack *stack) |
Parse and validate program input, initialize stacks and fill the first stack. | |
int | sort (t_stack *stack) |
Output all instructions required to sort stack a. | |
int input | ( | int | argc, |
char ** | argv, | ||
t_stack * | stack | ||
) |
Parse and validate program input, initialize stacks and fill the first stack.
[in] | argc | |
[in] | argv | |
[out] | stack |
int |
Definition at line 134 of file input.c.
References arr_free(), err(), init_stacks(), and parse_args().
int sort | ( | t_stack * | stack | ) |
Output all instructions required to sort stack a.
[in,out] | stack |
int |
Definition at line 148 of file sort.c.
References err(), get_minix(), is_sorted(), pick(), push(), rot_i(), and swap().