/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstnew.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: whaffman +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/07/05 18:42:06 by whaffman #+# #+# */ /* Updated: 2024/07/10 16:32:16 by whaffman ### ########.fr */ /* */ /* ************************************************************************** */ #include #include "libft.h" t_list *ft_lstnew(void *content) { t_list *node; node = malloc(sizeof(t_list)); if (node) { node->content = content; node->next = NULL; } return (node); }