summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_lstiter.c
diff options
context:
space:
mode:
Diffstat (limited to 'libft/src/ft_lstiter.c')
-rw-r--r--libft/src/ft_lstiter.c7
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);