Archived
1
0
This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
push_swap/stack/ft_stackadd_front.c

24 lines
1.0 KiB
C
Raw Normal View History

2024-02-12 15:27:29 +01:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_stackadd_front.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/04 18:52:38 by adjoly #+# #+# */
2024-02-22 13:38:34 +01:00
/* Updated: 2024/02/22 13:32:21 by adjoly ### ########.fr */
2024-02-12 15:27:29 +01:00
/* */
/* ************************************************************************** */
#include "../push_swap.h"
void ft_stackadd_front(t_stack **stack, t_stack *new)
{
if (!stack)
return ;
if (!new)
return ;
new->next = *stack;
*stack = new;
}