You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
1.0 KiB
23 lines
1.0 KiB
3 years ago
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_lstlast_bonus.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2021/10/22 14:50:21 by narnaud #+# #+# */
|
||
|
/* Updated: 2021/11/15 13:07:01 by narnaud ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "libft.h"
|
||
|
|
||
|
t_list *ft_lstlast(t_list *lst)
|
||
|
{
|
||
|
if (!lst)
|
||
|
return (NULL);
|
||
|
while (lst->next)
|
||
|
lst = lst->next;
|
||
|
return (lst);
|
||
|
}
|