25 lines
1.0 KiB
C
25 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_lstiter.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: scebula <scebula@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* 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;
|
|
}
|
|
}
|