From 6500b1ca9ce911d3db7c94ee3f4ee38489b8861a Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 30 Jan 2020 20:24:32 +0100 Subject: Renaming t_list -> t_ftlst, changing feature adding by header --- src/lst/ft_lstnew.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/lst/ft_lstnew.c') diff --git a/src/lst/ft_lstnew.c b/src/lst/ft_lstnew.c index ea10e4d..11cf223 100644 --- a/src/lst/ft_lstnew.c +++ b/src/lst/ft_lstnew.c @@ -11,12 +11,13 @@ /* ************************************************************************** */ #include "libft.h" +#include "libft_lst.h" -t_list *ft_lstnew(void const *content) +t_ftlst *ft_lstnew(void const *content) { - t_list *elem; + t_ftlst *elem; - if ((elem = (t_list*)malloc(sizeof(t_list))) == NULL) + if ((elem = (t_ftlst*)malloc(sizeof(t_ftlst))) == NULL) return (NULL); elem->content = (void*)content; elem->next = NULL; -- cgit