aboutsummaryrefslogtreecommitdiff
path: root/libft/include/libft_bt.h
blob: 6e2cc919200d8047c8d44ee0591bacd7e1d54645 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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