text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_dlistnew.c                                      :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: lrocigno <lrocigno@student.42sp.org.br>    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2021/11/06 15:43:52 by lrocigno          #+#    #+#             */
  /*   Updated: 2021/11/06 15:58:51 by lrocigno         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  /*
  ** Create a new double linked list.
  */
  
  t_dlist	*ft_dlstnew(void *content)
  {
  	t_dlist	*new;
  
  	new = malloc(sizeof(*new));
  	if (!new)
  		return (NULL);
  	new->content = content;
  	new->prev = NULL;
  	new->next = NULL;
  	return (new);
  }
  