-
Notifications
You must be signed in to change notification settings - Fork 0
/
los_ab_hermanos.c
37 lines (33 loc) · 1.25 KB
/
los_ab_hermanos.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
36
37
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* los_ab_hermanos.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: zwalad <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/08 15:03:26 by zwalad #+# #+# */
/* Updated: 2022/03/16 22:27:40 by zwalad ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
t_stacks *swap_ab(t_stacks *p)
{
p->a = swap_a(p->a);
p->b = swap_b(p->b);
ft_printf("ss\n");
return (p);
}
t_stacks *rotate_ab(t_stacks *p)
{
p->a = rotate_a(p->a);
p->b = rotate_b(p->b);
ft_printf("rr\n");
return (p);
}
t_stacks *r_rotate_ab(t_stacks *p)
{
p->a = r_rotate_a(p->a);
p->b = r_rotate_b(p->b);
ft_printf("rrr\n");
return (p);
}