text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_lstadd_front.c                                  :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: rarodrig <rarodrig@student.42sp.org.br>    +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2021/06/06 15:25:29 by rarodrig          #+#    #+#             */
  /*   Updated: 2021/06/06 15:25:29 by rarodrig         ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  void	ft_lstadd_front(t_list **lst, t_list *new)
  {
  	if (new == NULL)
  		return ;
  	if (*lst == NULL)
  	{
  		*lst = new;
  		return ;
  	}
  	new->next = *lst;
  	*lst = new;
  }
  