Push the final version
This commit is contained in:
commit
d0fe1fb2fb
28 changed files with 1459 additions and 0 deletions
19
libft/ft_lstadd_front.c
Executable file
19
libft/ft_lstadd_front.c
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_lstadd_front.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/02/13 12:07:31 by rparodi #+# #+# */
|
||||
/* Updated: 2024/03/06 12:15:50 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "../includes/push_swap.h"
|
||||
|
||||
void ft_lstadd_front(t_list **stack, t_list *new)
|
||||
{
|
||||
new->next = *stack;
|
||||
*stack = new;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue