/* ************************************************************************** */ /* */ /* ::: o_ :::::: ::: */ /* ft_lstnew.c :+: / :+::+: :+: */ /* +:+ > +:++:+ +:+ */ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2024/10/10 17:00:21 by whaffman #+#+# #+#+# #+# #+# | */ /* Updated: 2024/10/10 17:00:21 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ #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); }