text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_lstiter.c                                       :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: dkarthus <dkarthus@student.42.fr>          +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2020/11/04 15:47:22 by dkarthus          #+#    #+#             */
  /*   Updated: 2020/12/02 20:03:43 by dkarthus         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  void	ft_lstiter(t_list *lst, void (*f)(void *))
  {
  	t_list	*ptr;
  
  	if (!lst || !f)
  		return ;
  	ptr = lst;
  	while (ptr)
  	{
  		f(ptr->content);
  		ptr = ptr->next;
  	}
  }
  