-
Notifications
You must be signed in to change notification settings - Fork 0
/
rotate_operation.c
31 lines (27 loc) · 1.13 KB
/
rotate_operation.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* rotate_operation.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: oadewumi <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/27 20:15:21 by oadewumi #+# #+# */
/* Updated: 2024/05/24 13:20:41 by oadewumi ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
void rot_a(t_stack_mom *stack_a)
{
rotate(stack_a);
write(1, "ra\n", 3);
}
void rot_b(t_stack_mom *stack_b)
{
rotate(stack_b);
write(1, "rb\n", 3);
}
void rev_rot_a(t_stack_mom *stack_a)
{
reverse_rotate(stack_a);
write(1, "rra\n", 4);
}