/* ************************************************************************** */
/*                                                                            */
/*                                                        :::      ::::::::   */
/*   ll_del.c                                           :+:      :+:    :+:   */
/*                                                    +:+ +:+         +:+     */
/*   By: lroux <lroux@student.42.fr>                +#+  +:+       +#+        */
/*                                                +#+#+#+#+#+   +#+           */
/*   Created: 2019/02/21 14:24:52 by lroux             #+#    #+#             */
/*   Updated: 2019/10/27 23:15:33 by lroux            ###   ########.fr       */
/*                                                                            */
/* ************************************************************************** */

#include "list.h"

t_bool	ll_del(t_node **head)
{
	t_node *node;

	while ((node = ll_pop(head, 0)))
		free(node);
	return (true);
}
