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