mirror of
https://github.com/Ladebeze66/libft.git
synced 2025-12-13 04:36:55 +01:00
25 lines
1.0 KiB
C
Executable File
25 lines
1.0 KiB
C
Executable File
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_lstiter.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: fgras-ca <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/02/23 18:22:52 by fgras-ca #+# #+# */
|
|
/* Updated: 2023/02/23 18:24:51 by fgras-ca ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
void ft_lstiter(t_list *lst, void (*f)(void *))
|
|
{
|
|
if (!lst || !f)
|
|
return ;
|
|
while (lst)
|
|
{
|
|
f(lst->content);
|
|
lst = lst->next;
|
|
}
|
|
}
|