text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_lstnew.c                                        :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: cfeijoo <cfeijoo@student.42.fr>            +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2013/12/01 15:18:08 by cfeijoo           #+#    #+#             */
  /*   Updated: 2014/02/17 20:06:51 by cfeijoo          ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include <ft_memory.h>
  #include <ft_lists.h>
  #include <stdlib.h>
  
  t_list		*ft_lstnew(void const *content, size_t content_size)
  {
  	t_list	*newlst;
  
  	newlst = (t_list*)malloc(sizeof(t_list));
  	if (content_size)
  		newlst->content = ft_memdup(content, content_size);
  	newlst->content_size = 0;
  	newlst->next = 0;
  	return (newlst);
  }
  