/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstnew.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: vvobis +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/04/09 11:10:05 by vvobis #+# #+# */ /* Updated: 2024/04/09 18:59:48 by vvobis ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" t_list *ft_lstnew(void *content) { t_list *tmp; tmp = malloc(sizeof(*tmp)); if (!tmp) return (NULL); tmp->next = NULL; tmp->content = content; return (tmp); }