/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstlast_bonus.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/10/09 09:03:40 by cacharle #+# #+# */ /* Updated: 2019/11/20 04:02:26 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" #include "libft_lst.h" t_ftlst *ft_lstlast(t_ftlst *lst) { if (lst == NULL) return (NULL); while (lst->next != NULL) lst = lst->next; return (lst); }