/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_create_elem.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/07/09 17:19:22 by cacharle #+# #+# */ /* Updated: 2019/07/23 15:16:58 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include #include "ft_list.h" t_list *ft_create_elem(void *data) { t_list *list; if ((list = (t_list*)malloc(sizeof(t_list))) == NULL) return (NULL); list->data = data; list->next = NULL; return (list); }