int acl_btree_get_max_key(ACL_BTREE *tree, unsigned int *key) { BTREE_NODE *x; btree_validate(tree); if (tree->root == NULL) { return (-1); } x = btree_max(tree->root); if (x == NULL) { return (-1); } *key = x->key; return (0); }
int btree_get_max_key(btree_t *tree, uint32_t *key) { btree_node_t *x; btree_validate(tree); if (tree->root == NULL) { return FALSE; } x = btree_max(tree->root); if (x == NULL) { return FALSE; } *key = x->key; return TRUE; }