blob: 8b6996a4e7d6dd795fc5177814014217e6925506 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_create_elem.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/09 17:19:22 by cacharle #+# #+# */
/* Updated: 2019/07/09 17:19:24 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdlib.h>
#include "ft_list.h"
t_list *ft_create_elem(void *data)
{
t_list *list;
list = (t_list*)malloc(sizeof(t_list));
list->data = data;
list->next = NULL;
return (list);
}
|