From 462e664d0fdfbe2e9eae5c7e093c5a23b202dae8 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 29 Sep 2020 19:11:10 +0200 Subject: Norm update --- libft/src/ft_lstsize.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libft/src/ft_lstsize.c') diff --git a/libft/src/ft_lstsize.c b/libft/src/ft_lstsize.c index 7134a9f..05dbb77 100644 --- a/libft/src/ft_lstsize.c +++ b/libft/src/ft_lstsize.c @@ -12,12 +12,11 @@ #include -int - ft_lstsize(t_list *lst) +int ft_lstsize(t_list *lst) { int i; - if (!lst) + if (lst == NULL) return (0); i = 0; while (lst != NULL) -- cgit v1.2.3