text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_lstiter.c                                       :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: ksuzuki <ksuzuki@student.42tokyo.jp>       +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2020/06/28 14:28:29 by ksuzuki           #+#    #+#             */
  /*   Updated: 2020/06/28 14:32:34 by ksuzuki          ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  void	ft_lstiter(t_list *lst, void (*f)(void *))
  {
  	if (f == NULL)
  		return ;
  	while (lst != NULL)
  	{
  		(*f)(lst->content);
  		lst = lst->next;
  	}
  }
  