|
Libft
42 Libft library documentation
|
#include "../includes/types.h"
Include dependency graph for ft_lstadd_front.c:Go to the source code of this file.
Functions | |
| void | ft_lstadd_front (t_list **lst, t_list *new) |
| Adds a new element to the front of a linked list. This function takes a pointer to the first element of a linked list and a new element, then adds the new element to the front of the list. The new element becomes the new head of the list. | |
Adds a new element to the front of a linked list. This function takes a pointer to the first element of a linked list and a new element, then adds the new element to the front of the list. The new element becomes the new head of the list.
| lst | A pointer to the pointer to the first element of the list. |
| new | The new element to add to the front of the list. |
Definition at line 24 of file ft_lstadd_front.c.