-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_btreedel.c
20 lines (18 loc) · 1.03 KB
/
ft_btreedel.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_btreedel.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tle-meur <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/11/23 14:44:34 by tle-meur #+# #+# */
/* Updated: 2015/11/23 14:54:07 by tle-meur ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_btreedel(t_btree **root, void (*del)(t_data *))
{
if (root && *root && del)
while (*root)
ft_btreedelone(root, root, del);
}