blob: 3ff327866d42ba0e68c43687b213a354b4258371 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* btree_apply_infix.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/21 18:28:07 by cacharle #+# #+# */
/* Updated: 2019/07/23 21:09:53 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_btree.h"
void btree_apply_infix(t_btree *root, void (*applyf)(void *))
{
if (root == NULL)
return ;
btree_apply_infix(root->left);
(*applyf)(root->item);
btree_apply_infix(root->right);
}
|