Fix header file includes AND add write for each push swap functions

This commit is contained in:
David Gailleton
2025-12-12 11:40:02 +01:00
parent 1463f3e14a
commit 55363e0e6f
6 changed files with 55 additions and 19 deletions

View File

@@ -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);
}