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_lstmap.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libft/src/ft_lstmap.c') 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 #include -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) -- cgit v1.2.3