/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstnew.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: tosuman +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/06/09 14:55:31 by tosuman #+# #+# */ /* Updated: 2023/06/09 14:55:31 by tosuman ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" #include t_list *ft_lstnew(void *content) { t_list *new; new = malloc(sizeof(*new)); if (!new) return (0); new->content = content; new->next = 0; return (new); }