23 lines
1 KiB
C
23 lines
1 KiB
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_lstiter.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2016/12/04 19:13:25 by gtertysh #+# #+# */
|
||
|
/* Updated: 2016/12/06 19:47:50 by gtertysh ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "libft.h"
|
||
|
|
||
|
void ft_lstiter(t_list *lst, void (*f)(t_list *elem))
|
||
|
{
|
||
|
while (lst && f)
|
||
|
{
|
||
|
f(lst);
|
||
|
lst = lst->next;
|
||
|
}
|
||
|
}
|