added dual linked list

This commit is contained in:
Tanguy MAZE
2018-09-30 17:42:57 +02:00
parent 6dcecc0844
commit 4d2356e551
6 changed files with 135 additions and 1 deletions

21
ft_lst2size.c Normal file
View File

@@ -0,0 +1,21 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lst2size.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/09/30 17:38:55 by tmaze #+# #+# */
/* Updated: 2018/09/30 17:39:19 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
size_t ft_lst2size(t_list2 *lst)
{
if (lst == NULL)
return (0);
else
return (ft_lst2size(lst->next) + 1);
}