third-party/CART/cart.cpp
static int leaf_prefix_matches(const cart_leaf *n, const unsigned char *prefix, int prefix_len) {
    // Fail if the key length is too short
    if (n->key_len < (uint32_t)prefix_len) return 1;

    // Compare the keys
    return memcmp(n->key, prefix, prefix_len);
}
/**
 * Checks if a leaf prefix matches
 * @return 0 on success.
 */
Checks if a leaf prefix matches
@return 0 on success.
Checks if a leaf prefix matches @return 0 on success .
static int leaf_prefix_matches(const cart_leaf *n, const unsigned char *prefix, int prefix_len) {
    if (n->key_len < (uint32_t)prefix_len) return 1;
    return memcmp(n->key, prefix, prefix_len);
}
static int leaf_prefix_matches ( const cart_leaf * n , const unsigned char * prefix , int prefix_len ) { if ( n -> key_len < ( uint32_t ) prefix_len ) return 1 ; return memcmp ( n -> key , prefix , prefix_len ) ; }
Checks if a leaf prefix matches
 @return 0 on success.
Checks if a leaf prefix matches @return 0 on success .
// Fail if the key length is too short // Compare the keys