/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_list_last.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jayang <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/02/23 10:52:52 by jayang #+# #+# */
/* Updated: 2022/02/24 08:40:51 by jayang ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_list.h"
t_list *ft_list_last(t_list *begin_list)
{
if (begin_list == 0)
return (0);
while (begin_list->next)
begin_list = begin_list->next;
return (begin_list);
}