-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_lstlen.c
20 lines (18 loc) · 1010 Bytes
/
ft_lstlen.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rnbou <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/10/16 18:41:59 by rnbou #+# #+# */
/* Updated: 2018/10/17 16:41:22 by rnbou ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
size_t ft_lstlen(t_list *list)
{
if (!list)
return (0);
return (1 + ft_lstlen(list->next));
}