aboutsummaryrefslogtreecommitdiff
path: root/src/vec/ft_vecunwrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vec/ft_vecunwrap.c')
-rw-r--r--src/vec/ft_vecunwrap.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/vec/ft_vecunwrap.c b/src/vec/ft_vecunwrap.c
new file mode 100644
index 0000000..c1ab476
--- /dev/null
+++ b/src/vec/ft_vecunwrap.c
@@ -0,0 +1,22 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_vecunwrap.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/06/09 13:49:50 by charles #+# #+# */
+/* Updated: 2020/06/09 13:50:33 by charles ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "libft_vec.h"
+
+void **ft_vecunwrap(t_ftvec *vec)
+{
+ void **tmp;
+
+ tmp = vec->data;
+ free(vec);
+ return (tmp);
+}