/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* btree_apply_infix.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: gtertysh +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/11/11 13:21:21 by gtertysh #+# #+# */ /* Updated: 2016/11/11 18:49:54 by gtertysh ### ########.fr */ /* */ /* ************************************************************************** */ #include "ft_btree.h" void btree_apply_infix(t_btree *root, void (*applyf)(void *)) { if (!root) return ; btree_apply_infix(root->left, applyf); applyf(root->item); btree_apply_infix(root->right, applyf); }