-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrra.c
23 lines (20 loc) · 1.06 KB
/
rra.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* rra.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ebeiline <ebeiline@42wolfsburg.de> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/13 14:18:59 by ebeiline #+# #+# */
/* Updated: 2021/11/15 15:18:32 by ebeiline ### ########.fr */
/* */
/* ************************************************************************** */
#include "pushswap.h"
void ft_rra(t_list **lst, t_list **commands)
{
t_list *tmp;
tmp = ft_lstlast(*lst);
ft_delete_last(lst);
ft_lstadd_front(lst, tmp);
ft_lstadd(commands, "rra");
}