|
Libft
42 Libft library documentation
|
Include dependency graph for ft_lstadd_back.c:Go to the source code of this file.
Functions | |
| void | ft_lstadd_back (t_list **lst, t_list *new) |
| Adds a new element to the end 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 end of the list. If the list is empty, the new element becomes the first element. | |
Adds a new element to the end 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 end of the list. If the list is empty, the new element becomes the first element.
| lst | A pointer to the pointer to the first element of the list. |
| new | The new element to add to the end of the list. |
Definition at line 25 of file ft_lstadd_back.c.
References ft_lstlast(), and s_list::next.
Referenced by ft_lstmap().
Here is the call graph for this function:
Here is the caller graph for this function: