-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_lst_create_elem.c
24 lines (21 loc) · 1.08 KB
/
ft_lst_create_elem.c
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_lst_create_elem.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: moska <moska@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/01/09 20:56:57 by tmoska #+# #+# */
/* Updated: 2017/01/14 16:50:07 by tmoska ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include <stdlib.h>
t_list *ft_lst_create_elem(void *data)
{
t_list *new_list;
new_list = malloc(sizeof(t_list));
new_list->content = data;
new_list->next = NULL;
return (new_list);
}