/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstnew.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: mdenys +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/11/04 17:06:10 by mdenys #+# #+# */ /* Updated: 2020/11/04 17:29:10 by mdenys ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" t_list *ft_lstnew(void *content) { t_list *str; str = (t_list*)malloc(sizeof(t_list)); if (str) { str->content = content; str->next = NULL; return (str); } return (NULL); }