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

AvahiStringList* avahi_string_list_copy ( const AvahiStringList l  ) 

Copy a string list

Definition at line 295 of file strlst.c.

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

                                                                  {
    AvahiStringList *r = NULL;

    for (; l; l = l->next)
        if (!(r = avahi_string_list_add_arbitrary(r, l->text, l->size))) {
            avahi_string_list_free(r);
            return NULL;
        }

    return avahi_string_list_reverse(r);
}


Generated by  Doxygen 1.6.0   Back to index