ft_lstiter - gabrielcoelhodacunha-old/42sp-libft GitHub Wiki
Description
Applies the function f
to the content of each element of lst
.
Implementation
void ft_lstiter(t_list *lst, void (*f)(void *))
{
t_list *ptr;
ptr = lst;
while (ptr)
{
f(ptr->content);
ptr = ptr->next;
}
}