-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_lstsize.c
executable file
·20 lines (18 loc) · 1009 Bytes
/
ft_lstsize.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstsize.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tseguier <tseguier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2013/11/27 19:16:39 by tseguier #+# #+# */
/* Updated: 2014/03/27 18:39:08 by jcoignet ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
size_t ft_lstsize(t_list *lst)
{
if (!lst)
return (0);
return (1 + ft_lstsize(lst->next));
}