/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstiter.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: scebula +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2015/11/26 13:18:10 by scebula #+# #+# */ /* Updated: 2015/12/03 23:44:37 by scebula ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" void ft_lstiter(t_list *lst, void (*f)(t_list *)) { f(lst); lst = lst->next; while (lst != NULL) { f(lst); lst = lst->next; } }