summaryrefslogtreecommitdiff
path: root/libft/ft_free.c
diff options
context:
space:
mode:
Diffstat (limited to 'libft/ft_free.c')
-rw-r--r--libft/ft_free.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/libft/ft_free.c b/libft/ft_free.c
new file mode 100644
index 0000000..1713236
--- /dev/null
+++ b/libft/ft_free.c
@@ -0,0 +1,20 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_free.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: kdx <kdx @student.42angouleme.fr +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2022/10/07 13:31:11 by kdx #+# #+# */
+/* Updated: 2022/10/07 14:51:30 by kdx ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "libft.h"
+
+void *ft_free(void *ptr)
+{
+ if (ptr != NULL)
+ free(ptr);
+ return (NULL);
+}