third-party/CART/cart.cpp
void* cart_delete(cart_tree *t, const unsigned char *key, int key_len) {
    cart_leaf *l = recursive_delete(t->root, &t->root, key, key_len, 0);
    if (l) {
        t->size--;
        void *old = l->value;
        free(l);
        return old;
    }
    return NULL;
}
/**
 * Deletes a value from the cart tree
 * @arg t The tree
 * @arg key The key
 * @arg key_len The length of the key
 * @return NULL if the item was not found, otherwise
 * the value pointer is returned.
 */
Deletes a value from the cart tree
@arg t The tree
@arg key The key
@arg key_len The length of the key
@return NULL if the item was not found, otherwise
the value pointer is returned.
Deletes a value from the cart tree @arg t The tree @arg key The key @arg key_len The length of the key @return NULL if the item was not found otherwise the value pointer is returned .
void* cart_delete(cart_tree *t, const unsigned char *key, int key_len) {
    cart_leaf *l = recursive_delete(t->root, &t->root, key, key_len, 0);
    if (l) {
        t->size--;
        void *old = l->value;
        free(l);
        return old;
    }
    return NULL;
}
void * cart_delete ( cart_tree * t , const unsigned char * key , int key_len ) { cart_leaf * l = recursive_delete ( t -> root , & t -> root , key , key_len , 0 ) ; if ( l ) { t -> size -- ; void * old = l -> value ; free ( l ) ; return old ; } return NULL ; }
Deletes a value from the cart tree
 @arg t The tree
 @arg key The key
 @arg key_len The length of the key
 @return NULL if the item was not found, otherwise
 the value pointer is returned.
Deletes a value from the cart tree @arg t The tree @arg key The key @arg key_len The length of the key @return NULL if the item was not found otherwise the value pointer is returned .