summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_memdel.c
diff options
context:
space:
mode:
Diffstat (limited to 'libft/src/ft_memdel.c')
-rw-r--r--libft/src/ft_memdel.c20
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;
+}