add day 14 and try part2 with mlx (didn't work)
This commit is contained in:
25
2024/14/libft/ft_lstnew.c
Executable file
25
2024/14/libft/ft_lstnew.c
Executable file
@ -0,0 +1,25 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_lstnew.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/01 15:39:52 by tomoron #+# #+# */
|
||||
/* Updated: 2023/11/02 01:11:12 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libft.h"
|
||||
|
||||
t_list *ft_lstnew(void *content)
|
||||
{
|
||||
t_list *res;
|
||||
|
||||
res = malloc (sizeof(t_list));
|
||||
if (!res)
|
||||
return (0);
|
||||
res->content = content;
|
||||
res->next = NULL;
|
||||
return (res);
|
||||
}
|
Reference in New Issue
Block a user