blob: 2164e34294a3b52e8ad22c6a319dff99ece4c6d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_list_last.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/09 17:18:58 by cacharle #+# #+# */
/* Updated: 2019/07/23 15:37:03 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdlib.h>
#include "ft_list.h"
t_list *ft_list_last(t_list *begin_list)
{
if (begin_list == NULL)
return (NULL);
while (begin_list->next != NULL)
begin_list = begin_list->next;
return (begin_list);
}
|