aboutsummaryrefslogtreecommitdiff
path: root/src/lst/ft_lstnew.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-30 20:24:32 +0100
committerCharles <sircharlesaze@gmail.com>2020-01-30 20:24:32 +0100
commit6500b1ca9ce911d3db7c94ee3f4ee38489b8861a (patch)
tree4d2766b1bea4322a6e5851f53af33178d9643a5c /src/lst/ft_lstnew.c
parentaa244ec3fb071a7fd08494d04cc865b281502804 (diff)
downloadlibft-6500b1ca9ce911d3db7c94ee3f4ee38489b8861a.tar.gz
libft-6500b1ca9ce911d3db7c94ee3f4ee38489b8861a.tar.bz2
libft-6500b1ca9ce911d3db7c94ee3f4ee38489b8861a.zip
Renaming t_list -> t_ftlst, changing feature adding by header
Diffstat (limited to 'src/lst/ft_lstnew.c')
-rw-r--r--src/lst/ft_lstnew.c7
1 files changed, 4 insertions, 3 deletions
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;