/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstlast.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/11/11 16:03:12 by adjoly #+# #+# */ /* Updated: 2024/02/04 14:57:50 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ #include "../libft.h" t_list *ft_lstlast(t_list *lst) { if (!lst) return (NULL); while (lst->next) lst = lst->next; return (lst); }