tgrekov-push_swap
HIVE push_swap July 2024
|
Definition in file ft_lstmap_bonus.c.
#include "libft.h"
Go to the source code of this file.
Functions | |
t_list * | ft_lstmap (t_list *lst, void *(*f)(void *), void(*del)(void *)) |
Iterate over a list and create a new one from the results of applying f to the content of each node. | |
Iterate over a list and create a new one from the results of applying f
to the content of each node.
[in] | lst | Pointer to the starting node |
[in] | f | Function which takes the content of the current node and returns the content for the new node |
[in] | del | Function used to properly handle deletion of each node's content in the new list, should allocation fail |
t_list* | Pointer to the first node in the new list |
Definition at line 35 of file ft_lstmap_bonus.c.
References s_list::content, ft_lstadd_back(), ft_lstclear(), ft_lstnew(), and s_list::next.