From c9e4fb6e2ad07e13cf41d6ce6afad30b04011765 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 20 Apr 2020 14:51:45 +0200 Subject: Solid base --- src/ft_s_init.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/ft_s_init.c (limited to 'src/ft_s_init.c') diff --git a/src/ft_s_init.c b/src/ft_s_init.c new file mode 100644 index 0000000..82293be --- /dev/null +++ b/src/ft_s_init.c @@ -0,0 +1,25 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_s_init.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:19:27 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:19:29 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include + +t_data +*ft_init_data(void) +{ + t_data *data; + + if (!(data = (t_data*)malloc(sizeof(t_data)))) + { + return (NULL); + } + return (data); +} -- cgit v1.2.3