23 lines
1018 B
C
23 lines
1018 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_lstiter.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: tchivert <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2019/04/11 16:10:55 by tchivert #+# #+# */
|
|
/* Updated: 2019/09/04 05:13:28 by tchivert ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
void ft_lstiter(t_list *lst, void (*f)(t_list *elem))
|
|
{
|
|
while (lst)
|
|
{
|
|
f(lst);
|
|
lst = lst->next;
|
|
}
|
|
}
|