diff options
Diffstat (limited to '')
-rw-r--r-- | libft/src/ft_memdel.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libft/src/ft_memdel.c b/libft/src/ft_memdel.c new file mode 100644 index 0000000..38d6e08 --- /dev/null +++ b/libft/src/ft_memdel.c @@ -0,0 +1,20 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_memdel.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/14 17:06:42 by rbousset #+# #+# */ +/* Updated: 2020/02/14 17:06:42 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + +#include <stdlib.h> + +void + ft_memdel(void **ptr) +{ + free(*ptr); + *ptr = NULL; +} |