23 lines
1.0 KiB
C
23 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_lstiter.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2018/11/14 21:11:14 by hulamy #+# #+# */
|
|
/* Updated: 2018/11/16 14:01:10 by hulamy ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
void ft_lstiter(t_list *lst, void (*f)(t_list *elem))
|
|
{
|
|
if (!lst)
|
|
return ;
|
|
if (lst->next)
|
|
ft_lstiter(lst->next, f);
|
|
f(lst);
|
|
}
|