-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfun_rot.c
35 lines (31 loc) · 1.16 KB
/
fun_rot.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
32
33
34
35
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* fun_rot.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bpochlau <bpochlau@student.42vienna.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/17 18:59:28 by bpochlau #+# #+# */
/* Updated: 2023/11/21 15:17:05 by bpochlau ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
int ft_ra(t_vars **vars)
{
ft_r(&(*vars)->a);
ft_printf("ra\n");
return (OK);
}
int ft_rb(t_vars **vars)
{
ft_r(&(*vars)->b);
ft_printf("rb\n");
return (OK);
}
int ft_rr(t_vars **vars)
{
ft_r(&(*vars)->a);
ft_r(&(*vars)->b);
ft_printf("rr\n");
return (OK);
}