diff options
Diffstat (limited to 'libft/src/ft_lstiter.c')
-rw-r--r-- | libft/src/ft_lstiter.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libft/src/ft_lstiter.c b/libft/src/ft_lstiter.c index 72810c9..eff9736 100644 --- a/libft/src/ft_lstiter.c +++ b/libft/src/ft_lstiter.c @@ -13,11 +13,12 @@ #include <libft.h> #include <stddef.h> -void - ft_lstiter(t_list *lst, void (*f)(void *)) +void ft_lstiter(t_list *lst, void (*f)(void *)) { - if (!lst) + if (lst == NULL) + { return ; + } while (lst != NULL) { (*f)(lst->content); |