aboutsummaryrefslogtreecommitdiffstats
path: root/libft/src/ft_memdel.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libft/src/ft_memdel.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/libft/src/ft_memdel.c b/libft/src/ft_memdel.c
new file mode 100644
index 0000000..05c2982
--- /dev/null
+++ b/libft/src/ft_memdel.c
@@ -0,0 +1,21 @@
+/* ************************************************************************** */
+/* LE - / */
+/* / */
+/* ft_memdel.c .:: .:/ . .:: */
+/* +:+:+ +: +: +:+:+ */
+/* By: rbousset <marvin@le-101.fr> +:+ +: +: +:+ */
+/* #+# #+ #+ #+# */
+/* Created: 2020/01/09 15:58:16 by rbousset #+# ## ## #+# */
+/* Updated: 2020/01/09 15:58:17 by rbousset ### #+. /#+ ###.fr */
+/* / */
+/* / */
+/* ************************************************************************** */
+
+#include <stdlib.h>
+
+void
+ ft_memdel(void *ptr)
+{
+ free(ptr);
+ ptr = NULL;
+}