tgrekov-fdf
HIVE fdf May 2024
|
Definition in file ft_lstadd_front_bonus.c.
#include "libft.h"
Go to the source code of this file.
Functions | |
void | ft_lstadd_front (t_list **lst, t_list *new) |
Insert node new into the start of the list pointed to by the pointer at lst . | |
Insert node new
into the start of the list pointed to by the pointer at lst
.
If lst
or new
are NULL
, does nothing.
Sets next property of node at pointer new
to address at pointer lst
and sets pointer at lst
to new
[in,out] | lst | Pointer to pointer to first node in the list. |
[in] | new | Pointer to the new node to add |
Definition at line 34 of file ft_lstadd_front_bonus.c.