/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstiter.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/11/12 11:42:24 by rparodi #+# #+# */ /* Updated: 2025/09/01 16:35:17 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ #include "list.h" #include /** * @brief Apply the fstunction given in arguments at all the element of the list * * @param lst the chained list * @param f the pointer to function */ void ft_lstiter(t_list *lst, void (*f)(void *)) { while (lst != NULL) { f(lst->content); lst = lst->next; } }