style: reoarginsed the file and fix the makefile

This commit is contained in:
Raphael 2024-10-31 12:41:17 +01:00
parent ecd9608320
commit a5fe7484a1
46 changed files with 140 additions and 49 deletions

View file

@ -1,26 +0,0 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstnew.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/12 11:44:02 by rparodi #+# #+# */
/* Updated: 2023/11/12 14:25:12 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
t_list *ft_lstnew(void *content)
{
t_list *to_return;
to_return = NULL;
to_return = (t_list *)malloc(sizeof(t_list));
if (!to_return)
return (NULL);
to_return->content = content;
to_return->next = NULL;
return (to_return);
}