-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrb.c
22 lines (20 loc) · 1.07 KB
/
rb.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* rb.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yst-laur <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/09 14:22:09 by yst-laur #+# #+# */
/* Updated: 2022/03/09 14:22:16 by yst-laur ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
void rb(t_stack stack)
{
int temp;
temp = *stack.stackb;
shiftstackup(stack.stackb, *stack.stackbsize);
*(stack.stackb + *stack.stackbsize) = temp;
write(1, "rb\n", 3);
}