btree_cmp
if (argc > 2 && btree_cmp(bt, &key, &maxkey) > 0)
int btree_cmp(struct btree *bt, const struct btval *a,