text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_listiter.c                                      :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: hturkatr <marvin@42.fr>                    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2019/09/06 14:07:35 by hturkatr          #+#    #+#             */
  /*   Updated: 2019/09/20 14:23:47 by hturkatr         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  void	ft_lstiter(t_list *lst, void (*f)(t_list *elem))
  {
  	if (!lst || !f)
  		return ;
  	while (lst)
  	{
  		(*f)(lst);
  		lst = lst->next;
  	}
  }
  