/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstnew.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: aortigos +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/10/22 20:07:04 by aortigos #+# #+# */ /* Updated: 2023/10/22 20:08:16 by aortigos ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" t_list *ft_lstnew(void *content) { t_list *x; x = malloc(sizeof(t_list)); if (!(x)) return (NULL); x->content = content; x->next = NULL; return (x); }