/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_list_foreach.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/07/19 08:29:57 by cacharle #+# #+# */ /* Updated: 2019/07/23 15:43:14 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include #include "ft_list.h" void ft_list_foreach(t_list *begin_list, void (*f)(void *)) { while (begin_list != NULL) { (*f)(begin_list->data); begin_list = begin_list->next; } }