22 lines
1020 B
C
Executable File
22 lines
1020 B
C
Executable File
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_lstiter.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/11/01 16:35:30 by tomoron #+# #+# */
|
|
/* Updated: 2023/11/02 01:13:21 by tomoron ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
#include "libft.h"
|
|
|
|
void ft_lstiter(t_list *lst, void (*f)(void *))
|
|
{
|
|
while (lst)
|
|
{
|
|
f(lst->content);
|
|
lst = lst->next;
|
|
}
|
|
}
|