-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_reverse_rotate_a_and_b.c
23 lines (21 loc) · 1.11 KB
/
ft_reverse_rotate_a_and_b.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_reverse_rotate_a_and_b.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dlana <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/09/29 20:23:39 by dlana #+# #+# */
/* Updated: 2021/09/30 21:03:31 by dlana ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
void ft_reverse_rotate_a_and_b(t_point *points)
{
if (points->count_a > 1)
points->a = points->a->prev;
if (points->count_b > 1)
points->b = points->b->prev;
if (points->checker == 0)
write (1, "rrr\n", 4);
}