text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_lstiter.c                                       :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: ksticks <ksticks@student.42.fr>            +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2019/09/12 14:50:34 by ksticks           #+#    #+#             */
  /*   Updated: 2019/09/17 19:13:05 by ksticks          ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  void	ft_lstiter(t_list *lst, void (*f)(t_list *elem))
  {
  	while (lst)
  	{
  		f(lst);
  		lst = lst->next;
  	}
  }
  