-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_rotate_a.c
21 lines (19 loc) · 1.04 KB
/
ft_rotate_a.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_rotate_a.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dlana <dlana@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/09/29 20:24:15 by dlana #+# #+# */
/* Updated: 2021/09/30 21:03:55 by dlana ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
void ft_rotate_a(t_point *points)
{
if (points->count_a > 1)
points->a = points->a->next;
if (points->checker == 0)
write (1, "ra\n", 3);
}