third-party/CART/cart.cpp
void* cart_insert(cart_tree *t, const unsigned char *key, int key_len, void *value) {
    int old_val = 0;
    void *old = recursive_insert(t->root, &t->root, key, key_len, value, 0, &old_val);
    if (!old_val) t->size++;
    return old;
}
/**
 * Inserts a new value into the cart tree
 * @arg t The tree
 * @arg key The key
 * @arg key_len The length of the key
 * @arg value Opaque value.
 * @return NULL if the item was newly inserted, otherwise
 * the old value pointer is returned.
 */
Inserts a new value into the cart tree
@arg t The tree
@arg key The key
@arg key_len The length of the key
@arg value Opaque value.
@return NULL if the item was newly inserted, otherwise
the old value pointer is returned.
Inserts a new value into the cart tree @arg t The tree @arg key The key @arg key_len The length of the key @arg value Opaque value . @return NULL if the item was newly inserted otherwise the old value pointer is returned .
void* cart_insert(cart_tree *t, const unsigned char *key, int key_len, void *value) {
    int old_val = 0;
    void *old = recursive_insert(t->root, &t->root, key, key_len, value, 0, &old_val);
    if (!old_val) t->size++;
    return old;
}
void * cart_insert ( cart_tree * t , const unsigned char * key , int key_len , void * value ) { int old_val = 0 ; void * old = recursive_insert ( t -> root , & t -> root , key , key_len , value , 0 , & old_val ) ; if ( ! old_val ) t -> size ++ ; return old ; }
Inserts a new value into the cart tree
 @arg t The tree
 @arg key The key
 @arg key_len The length of the key
 @arg value Opaque value.
Inserts a new value into the cart tree @arg t The tree @arg key The key @arg key_len The length of the key @arg value Opaque value .