/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstnew.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/11/11 15:30:32 by adjoly #+# #+# */ /* Updated: 2024/02/04 14:58:59 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ #include "../libft.h" t_list *ft_lstnew(void *content) { t_list *lst; lst = malloc(sizeof(t_list)); if (!lst) return (NULL); lst[0].content = content; lst[0].next = NULL; return (lst); }