/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstiter_bonus.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/10/09 09:03:22 by cacharle #+# #+# */ /* Updated: 2019/10/17 09:02:38 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include #include "libft.h" void ft_lstiter(t_list *lst, void (*f)(void *)) { if (f == NULL) return ; while (lst != NULL) { (*f)(lst->content); lst = lst->next; } }