libft/sources/libft_srcs/ft_lstiter.c
void	ft_lstiter(t_list *lst, void (*f)(t_list *elem))
{
	if (!f)
		return ;
	while (lst)
	{
		f(lst);
		lst = lst->next;
	}
}
/*
** Iterates the list lst and applies the function f to each link.
*/
Iterates the list lst and applies the function f to each link.
Iterates the list lst and applies the function f to each link .
void	ft_lstiter(t_list *lst, void (*f)(t_list *elem))
{
	if (!f)
		return ;
	while (lst)
	{
		f(lst);
		lst = lst->next;
	}
}
void ft_lstiter ( t_list * lst , void ( * f ) ( t_list * elem ) ) { if ( ! f ) return ; while ( lst ) { f ( lst ) ; lst = lst -> next ; } }
Iterates the list lst and applies the function f to each link.
Iterates the list lst and applies the function f to each link .