From b34688558a7b9d2b1f95c00a33197cdc017e8dc5 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 22 Mar 2020 16:58:26 +0100 Subject: Norm so far --- src/ft_del_sfx_cmd.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/ft_del_sfx_cmd.c (limited to 'src/ft_del_sfx_cmd.c') diff --git a/src/ft_del_sfx_cmd.c b/src/ft_del_sfx_cmd.c new file mode 100644 index 0000000..b5c5fdf --- /dev/null +++ b/src/ft_del_sfx_cmd.c @@ -0,0 +1,30 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_del_sfx_cmd.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:28:46 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:28:46 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include +#include +#include + +void + ft_del_sfx_cmd(t_cub *clist) +{ + uint8_t i; + + i = 0; + while (i < 10) + { + ft_memdel((void*)&clist->sfx[i].cmd); + i++; + } + ft_memdel((void*)&clist->sfx[1].cmd_alt); + ft_memdel((void*)&clist->sfx[3].cmd_alt); +} -- cgit v1.2.3