text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_lstiter.c                                       :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: pedobos <marvin@42.fr>                     +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2017/12/14 11:45:51 by pedobos           #+#    #+#             */
  /*   Updated: 2017/12/14 11:47:35 by pedobos          ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  void	ft_lstiter(t_list *lst, void (*f)(t_list *elem))
  {
  	if (f != NULL)
  		while (lst != NULL)
  		{
  			f(lst);
  			lst = lst->next;
  		}
  }
  