tgrekov-push_swap
HIVE push_swap July 2024
|
Definition in file rot.c.
Go to the source code of this file.
Functions | |
static int | _rot (t_stack stack) |
Shift all elements in stack down. | |
void | rot (t_stack *stack, int mode) |
Shift all elements in stack 1, 2, or both down, depending on whether mode is set to 0, 1, or 2. | |
|
static |
void rot | ( | t_stack * | stack, |
int | mode | ||
) |
Shift all elements in stack 1, 2, or both down, depending on whether mode
is set to 0, 1, or 2.
[in,out] | stack | |
[in] | mode |
Definition at line 51 of file rot.c.
References _rot(), and ft_printf().