text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_lstadd.c                                        :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: mbarbari <mbarbari@student.42.fr>          +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2014/11/10 17:50:03 by mbarbari          #+#    #+#             */
  /*   Updated: 2014/11/28 14:37:37 by mbarbari         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  void	ft_lstadd(t_list **alst, t_list *new)
  {
  	if (new)
  	{
  		if (!(*alst))
  		{
  			*alst = new;
  			return ;
  		}
  		new->next = *alst;
  		*alst = new;
  	}
  }
  