Logo Search packages:      
Sourcecode: avahi version File versions  Download package

int avahi_string_list_equal ( const AvahiStringList a,
const AvahiStringList b 
)

Compare to string lists

Definition at line 235 of file strlst.c.

References AvahiStringList::next, AvahiStringList::size, and AvahiStringList::text.

                                                                                {

    for (;;) {
        if (!a && !b)
            return 1;

        if (!a || !b)
            return 0;

        if (a->size != b->size)
            return 0;

        if (a->size != 0 && memcmp(a->text, b->text, a->size) != 0)
            return 0;

        a = a->next;
        b = b->next;
    }
}


Generated by  Doxygen 1.6.0   Back to index