From 840957aee277e7c426647cc133b2a41e7cecd9a9 Mon Sep 17 00:00:00 2001 From: Cabergs Charles Date: Wed, 9 Oct 2019 09:12:43 +0200 Subject: Normed, Makefile bonus rule - bonus rule to add the *_bonus files to libft.a - normed memmove, calloc and bonus --- ft_lstmap.c | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 ft_lstmap.c (limited to 'ft_lstmap.c') diff --git a/ft_lstmap.c b/ft_lstmap.c deleted file mode 100644 index 41a7e19..0000000 --- a/ft_lstmap.c +++ /dev/null @@ -1,17 +0,0 @@ -#include -#include "libft.h" - -t_list *ft_lstmap(t_list *lst, t_list *(*f)(t_list *)) -{ - t_list *mapped; - t_list *tmp; - - while (lst != NULL) - { - tmp = ft_lstnew(lst->content); - tmp->next = lst->next; - tmp = (*f)(tmp); - ft_lstadd_back(&mapped, tmp); - } - return (mapped); -} -- cgit