text: /* ************************************************************************** */
  /*                                                                            */
  /*                                                        ::::::::            */
  /*   ft_lstlast.c                                       :+:    :+:            */
  /*                                                     +:+                    */
  /*   By: jcorneli <marvin@codam.nl>                   +#+                     */
  /*                                                   +#+                      */
  /*   Created: 2020/11/12 23:05:05 by jcorneli      #+#    #+#                 */
  /*   Updated: 2020/11/26 16:40:47 by jcorneli      ########   odam.nl         */
  /*                                                                            */
  /* ************************************************************************** */
  
  #include <libft.h>
  
  t_list	*ft_lstlast(t_list *lst)
  {
  	while (lst)
  	{
  		if (lst->next == NULL)
  			return (lst);
  		lst = lst->next;
  	}
  	return (NULL);
  }
  