/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstnew.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: erey-bet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/10/09 21:34:58 by erey-bet #+# #+# */ /* Updated: 2022/10/11 22:13:33 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" t_list *ft_lstnew(void *content) { t_list *list; list = malloc(sizeof(t_list)); if (list == NULL) return (NULL); list->content = content; list->next = NULL; return (list); }