tgrekov-push_swap
HIVE push_swap July 2024
|
Definition in file swap.c.
Go to the source code of this file.
Functions | |
static int | _swap (t_stack stack) |
Swap the first two elements in stack . | |
void | swap (t_stack *stack, int mode) |
Swap the first two elements in stacks 1, 2, or both, depending on whether mode is set to 0, 1, or 2. | |
|
static |
void swap | ( | t_stack * | stack, |
int | mode | ||
) |
Swap the first two elements in stacks 1, 2, or both, depending on whether mode
is set to 0, 1, or 2.
[in,out] | stack | |
[in] | mode |
Definition at line 48 of file swap.c.
References _swap(), and ft_printf().