lib/simap.c
/* Returns true if the two maps are equal, meaning that they have the same set
 * of key-value pairs, otherwise false. */
Returns true if the two maps are equal, meaning that they have the same set
of key-value pairs, otherwise false.
Returns true if the two maps are equal meaning that they have the same set of key - value pairs otherwise false .
bool
simap_equal(const struct simap *a, const struct simap *b)
{
    if (simap_count(a) != simap_count(b)) {
        return false;
    }
    const struct simap_node *an;
    SIMAP_FOR_EACH (an, a) {
        const struct simap_node *bn = simap_find(b, an->name);
        if (!bn || an->data != bn->data) {
            return false;
        }
    }
    return true;
}
bool simap_equal ( const struct simap * a , const struct simap * b ) { if ( simap_count ( a ) != simap_count ( b ) ) { return false ; } const struct simap_node * an ; SIMAP_FOR_EACH ( an , a ) { const struct simap_node * bn = simap_find ( b , an -> name ) ; if ( ! bn || an -> data != bn -> data ) { return false ; } } return true ; }
Returns true if the two maps are equal, meaning that they have the same set
 of key-value pairs, otherwise false.
Returns true if the two maps are equal meaning that they have the same set of key - value pairs otherwise false .