github to gitea
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_lstsize.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: lfirmin <[email protected]> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/31 22:00:49 by lfirmin #+# #+# */
|
||||
/* Updated: 2024/05/31 22:12:17 by lfirmin ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
#include "libft.h"
|
||||
|
||||
int ft_lstsize(t_list *lst)
|
||||
{
|
||||
int i;
|
||||
t_list *count;
|
||||
|
||||
count = lst;
|
||||
i = 0;
|
||||
while (count)
|
||||
{
|
||||
count = count->next;
|
||||
i++;
|
||||
}
|
||||
return (i);
|
||||
}
|
||||
Reference in New Issue
Block a user