mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 00:41:57 +00:00
Fix header file includes AND add write for each push swap functions
This commit is contained in:
@@ -6,12 +6,13 @@
|
||||
/* By: mteriier <mteriier@student.42lyon.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/12/08 15:09:40 by mteriier #+# #+# */
|
||||
/* Updated: 2025/12/09 11:36:36 by mteriier ### ########lyon.fr */
|
||||
/* Updated: 2025/12/12 11:39:33 by dgaillet ### ########lyon.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "../push_swap.h"
|
||||
#include "push_swap.h"
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
void pa(t_stacks *stacks)
|
||||
{
|
||||
@@ -29,7 +30,7 @@ void pa(t_stacks *stacks)
|
||||
stacks->b = stacks->b->next;
|
||||
}
|
||||
stack_add_front(&(stacks->a), b_push);
|
||||
|
||||
write(1, "pa\n", 3);
|
||||
}
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -50,4 +51,5 @@ void pb(t_stacks *stacks)
|
||||
stacks->a = stacks->a->next;
|
||||
}
|
||||
stack_add_front(&(stacks->b), a_push);
|
||||
write(1, "pb\n", 3);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user