/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_create_elem.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: gtertysh +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/11/08 14:02:25 by gtertysh #+# #+# */ /* Updated: 2016/11/09 18:35:30 by gtertysh ### ########.fr */ /* */ /* ************************************************************************** */ #include #include "ft_list.h" t_list *ft_create_elem(void *data) { t_list *new; new = NULL; if ((new = malloc(sizeof(t_list)))) { new->data = data; new->next = NULL; } return (new); }