text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_lstdelone.c                                     :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: jwinthei <marvin@42.fr>                    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2018/11/27 13:23:17 by jwinthei          #+#    #+#             */
  /*   Updated: 2018/11/27 14:13:43 by jwinthei         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  void		ft_lstdelone(t_list **alst, void (*del)(void *, size_t))
  {
  	t_list	*list;
  
  	if (!(alst && *alst))
  		return ;
  	list = *alst;
  	del(list->content, list->content_size);
  	free(*alst);
  	*alst = NULL;
  }
  