ft_memdel

This commit is contained in:
Tanguy MAZE
2018-04-06 18:32:43 +02:00
parent ec7b2d2ff5
commit a6613be0ff
2 changed files with 22 additions and 2 deletions

19
ft_memdel.c Normal file
View File

@@ -0,0 +1,19 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memdel.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tmaze <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/04/06 18:21:08 by tmaze #+# #+# */
/* Updated: 2018/04/06 18:29:17 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_memdel(void **ap)
{
free(*ap);
*ap = NULL;
}