aboutsummaryrefslogtreecommitdiff
path: root/ft_lstnew.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-10-08 18:19:36 +0200
committerCharles <sircharlesaze@gmail.com>2019-10-08 18:19:36 +0200
commit4e2e8aac225f2a226573ae36e5327a8c4073bbbc (patch)
tree1946afb4965208899382464910ee1e4a78a65939 /ft_lstnew.c
parentc73c541621f0567c511bbcac4a0bf40e116c53d7 (diff)
downloadlibft-4e2e8aac225f2a226573ae36e5327a8c4073bbbc.tar.gz
libft-4e2e8aac225f2a226573ae36e5327a8c4073bbbc.tar.bz2
libft-4e2e8aac225f2a226573ae36e5327a8c4073bbbc.zip
Added bonus functions WIP
Diffstat (limited to 'ft_lstnew.c')
-rw-r--r--ft_lstnew.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ft_lstnew.c b/ft_lstnew.c
index d4f53bc..01ab599 100644
--- a/ft_lstnew.c
+++ b/ft_lstnew.c
@@ -1,14 +1,14 @@
#include <stdlib.h>
#include "libft.h"
-t_list * ft_lstnew(void const *content, size_t content_size)
+t_list *ft_lstnew(void const *content)
{
t_list *elem;
if ((elem = (t_list*)malloc(sizeof(t_list))) == NULL)
return (NULL);
- elem->content = (void*)content;
- elem->content_size = content_size;
+ /* elem->content = (void*)content; */
+ (void)content;
elem->next = NULL;
return (elem);
}