/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstnew.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: apommier +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/12/09 01:06:20 by apommier #+# #+# */ /* Updated: 2020/12/09 01:31:00 by apommier ### ########.fr */ /* */ /* ************************************************************************** */ #include ""libft.h"" t_list *ft_lstnew(void *content) { t_list *new; new = (t_list)malloc(sizeof(t_list)); if (!new) return (0); new->content = content; new->next = 0; return (new); }