text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_lstdelone.c                                     :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: ntoshihi <ntoshihi@student.42tokyo.jp>     +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2021/10/04 22:07:29 by ntoshihi          #+#    #+#             */
  /*   Updated: 2021/10/04 22:07:29 by ntoshihi         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  void	ft_lstdelone(t_list *lst, void (*del)(void *))
  {
  	if (!(lst && del))
  		return ;
  	del(lst->content);
  	free(lst);
  	lst = NULL;
  }
  