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