13#include "../includes/libft.h"
14#include "../includes/types.h"
32 if (!lst || !f || !del)
t_list * ft_lstmap(t_list *lst, void *(*f)(void *), void(*del)(void *))
Creates a new linked list with the results of applying a function to each element of the original lis...
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...
void ft_lstclear(t_list **lst, void(*del)(void *))
Clears a linked list. This function takes a pointer to the first element of a linked list and a funct...
t_list * ft_lstnew(void *content)
Creates a new linked-list node.