-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_dlstlast.c
22 lines (20 loc) · 1.03 KB
/
ft_dlstlast.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_dlstlast.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kakiba <kotto555555@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/10 11:47:18 by kakiba #+# #+# */
/* Updated: 2022/12/10 11:55:55 by kakiba ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
t_dlist *ft_dlstlast(t_dlist *lst)
{
if (lst == NULL)
return (NULL);
while (lst -> next != NULL)
lst = lst -> next;
return (lst);
}