-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstructions3.c
More file actions
35 lines (32 loc) · 1.18 KB
/
instructions3.c
File metadata and controls
35 lines (32 loc) · 1.18 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* instructions3.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adbaich <adbaich@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/14 10:26:20 by adbaich #+# #+# */
/* Updated: 2022/03/14 10:27:01 by adbaich ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap_bonus.h"
#include "push_swap.h"
void pa(t_list **head_a, t_list **head_b)
{
t_list *tmp0;
tmp0 = *head_b;
if (!tmp0)
return ;
*head_b = tmp0->next;
if (!*head_a)
{
tmp0->next = NULL;
*head_a = tmp0;
}
else
{
tmp0->next = *head_a;
*head_a = tmp0;
}
write(1, "pa\n", 3);
}