text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_lstiter_bonus.c                                 :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: pfuchs <pfuchs@student.42heilbronn.de>     +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2022/03/09 18:19:35 by pfuchs            #+#    #+#             */
  /*   Updated: 2022/03/22 20:17:39 by pfuchs           ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft_bonus.h" // t_list
  
  // Applies the function on the content of every node
  void	ft_lstiter(t_list *lst, void (*f)(void *))
  {
  	while (lst)
  	{
  		f(lst->content);
  		lst = lst->next;
  	}
  }
  