-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactionssimul.c
More file actions
34 lines (30 loc) · 1.15 KB
/
actionssimul.c
File metadata and controls
34 lines (30 loc) · 1.15 KB
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
32
33
34
/* ************************************************************************** */
/* */
/* :::::::: */
/* actionssimul.c :+: :+: */
/* +:+ */
/* By: candace <candace@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2022/08/23 16:08:04 by candace #+# #+# */
/* Updated: 2022/09/06 09:22:19 by candace ######## odam.nl */
/* */
/* ************************************************************************** */
#include "pushswap.h"
void ss(int *stacka, int *stackb)
{
sa(stacka);
sb(stackb);
write(1, "ss\n", 3);
}
void rr(int *stacka, int *stackb)
{
ra(stacka);
rb(stackb);
write(1, "rr\n", 3);
}
void rrr(int *stacka, int *stackb)
{
rra(stacka);
rrb(stackb);
write(1, "rrr\n", 4);
}