/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstlast.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: grobledo +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/02/23 10:27:02 by grobledo #+# #+# */ /* Updated: 2023/02/23 10:27:07 by grobledo ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" t_list *ft_lstlast(t_list *lst) { if (!lst) return (NULL); while (lst->next) lst = lst->next; return (lst); }