/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstnew_bonus.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: narnaud +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2021/10/20 17:36:09 by narnaud #+# #+# */ /* Updated: 2022/03/24 09:22:49 by narnaud ### ########.fr */ /* */ /* ************************************************************************** */ #include "../libft.h" t_list *ft_lstnew(void *content) { t_list *i_cell; i_cell = (t_list *)malloc(sizeof(*i_cell)); if (!i_cell) return (NULL); i_cell->content = content; i_cell->next = NULL; return (i_cell); }