From 329e7a3bde7f206414fe89c9b3ca12d1fc1e1b29 Mon Sep 17 00:00:00 2001 From: Charles Date: Sun, 9 Feb 2020 00:49:33 +0100 Subject: Added btree basic --- include/libft_bt.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/libft_bt.h (limited to 'include/libft_bt.h') 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 +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* 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 + +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 -- cgit