/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* btree_apply_infix.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/07/21 18:28:07 by cacharle #+# #+# */ /* Updated: 2019/07/24 13:49:17 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include #include "ft_btree.h" void btree_apply_infix(t_btree *root, void (*applyf)(void *)) { if (root == NULL) return ; btree_apply_infix(root->left, applyf); (*applyf)(root->item); btree_apply_infix(root->right, applyf); }