summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_lstmap.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libft/src/ft_lstmap.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libft/src/ft_lstmap.c b/libft/src/ft_lstmap.c
index b489527..cc2412e 100644
--- a/libft/src/ft_lstmap.c
+++ b/libft/src/ft_lstmap.c
@@ -14,16 +14,15 @@
#include <stddef.h>
#include <stdlib.h>
-t_list
- *ft_lstmap(t_list *lst, void *(*f)(void *), void (*del)(void *))
+t_list *ft_lstmap(t_list *lst, void *(*f)(void *), void (*del)(void *))
{
t_list *nlst;
t_list *new;
- if (!lst)
+ if (lst == NULL)
return (NULL);
nlst = ft_lstnew((*f)(lst->content));
- if (!nlst)
+ if (nlst == NULL)
return (NULL);
lst = lst->next;
while (lst != NULL)