void put(int key, int data) { if (data) { bplus_tree_insert(bplus_tree, key, data); } else { bplus_tree_delete(bplus_tree, key); } }
int bplus_tree_put(struct bplus_tree *tree, int key, int data) { if (data) { return bplus_tree_insert(tree, key, data); } else { return bplus_tree_delete(tree, key); } }