23 lines
1.0 KiB
C
23 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_lstiter.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/09/30 00:05:43 by cchauvet #+# #+# */
|
|
/* Updated: 2022/09/30 00:33:06 by cchauvet ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
void ft_lstiter(t_list *lst, void (*f)(void *))
|
|
{
|
|
while (lst->next == NULL)
|
|
{
|
|
f(lst);
|
|
lst = lst->next;
|
|
}
|
|
}
|