/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstcount.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: tmaze +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2018/04/09 13:55:29 by tmaze #+# #+# */ /* Updated: 2018/04/09 14:02:11 by tmaze ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" size_t ft_lstcount(t_list *lst) { if (lst == NULL) return (0); else return (ft_lstcount(lst->next) + 1); }