modified some files like all files in stack utils and adding main.c and modified atoi and parssing

This commit is contained in:
Maoake
2025-12-08 20:44:03 +00:00
parent 8e8ca5cfdc
commit 30b306d2c2
10 changed files with 87 additions and 26 deletions

View File

@@ -6,25 +6,25 @@
/* By: mteriier <mteriier@student.42lyon.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/12/08 15:09:40 by mteriier #+# #+# */
/* Updated: 2025/12/08 15:35:23 by mteriier ### ########lyon.fr */
/* Updated: 2025/12/08 19:37:01 by mteriier ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
#include "../push_swap.h"
void pa(t_stacks *stacks)
{
t_stack a;
t_stack *a;
if (!stacks || !stacks->b)
return ;
a = stack->a;
a = stacks->a;
a->value = stacks->b->value;
}
void pb(t_stacks *stacks)
{
t_stack b;
t_stack *b;
if (!stacks || !stacks->a)
return ;