aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-02-09 00:49:33 +0100
committerCharles <sircharlesaze@gmail.com>2020-02-09 00:49:33 +0100
commit329e7a3bde7f206414fe89c9b3ca12d1fc1e1b29 (patch)
tree197d37af649baba133259890834f19493b9f6562 /include
parent2b254e816835dec4d9d7f3128a9bd37fb13f4c3b (diff)
downloadlibft-329e7a3bde7f206414fe89c9b3ca12d1fc1e1b29.tar.gz
libft-329e7a3bde7f206414fe89c9b3ca12d1fc1e1b29.tar.bz2
libft-329e7a3bde7f206414fe89c9b3ca12d1fc1e1b29.zip
Added btree basic
Diffstat (limited to 'include')
-rw-r--r--include/libft_bt.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/libft_bt.h b/include/libft_bt.h
new file mode 100644
index 0000000..6e2cc91
--- /dev/null
+++ b/include/libft_bt.h
@@ -0,0 +1,28 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* libft_bt.h :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/02/07 21:26:34 by cacharle #+# #+# */
+/* Updated: 2020/02/07 21:34:52 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#ifndef LIBFT_BT_H
+# define LIBFT_BT_H
+
+# include <stdlib.h>
+
+typedef struct s_ftbtree
+{
+ void *data;
+ struct s_ftbtree *left;
+ struct s_ftbtree *right;
+} t_ftbtree;
+
+t_ftbtree *ft_btnew(void *data);
+void ft_btdestroy(t_ftbtree *tree, void (*del)(void *data));
+
+#endif