text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        :::      ::::::::   */
  /*   ft_lstadd_back.c                                   :+:      :+:    :+:   */
  /*                                                    +:+ +:+         +:+     */
  /*   By: knicks <marvin@42.fr>                      +#+  +:+       +#+        */
  /*                                                +#+#+#+#+#+   +#+           */
  /*   Created: 2022/01/05 20:48:28 by knicks            #+#    #+#             */
  /*   Updated: 2022/01/05 20:49:39 by knicks           ###   ########.fr       */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include "libft.h"
  
  /* ape add new element end of list 
  */
  void	ft_lstadd_back(t_list **lst, t_list *new)
  {
  	t_list	*last;
  
  	if (*lst == NULL)
  	{
  		*lst = new;
  		return ;
  	}
  	last = ft_lstlast(*lst);
  	last->next = new;
  }
  