Logo Search packages:      
Sourcecode: inkscape version File versions

GList* cr_utils_dup_glist_of_cr_string ( GList *  a_list_of_strings  ) 

Duplicate a GList where the GList::data is a CRString.

Parameters:
a_list_of_strings the list to duplicate
Returns:
the duplicated list, or NULL if something bad happened.

Definition at line 1328 of file cr-utils.c.

{
        GList *cur = NULL, *result = NULL;

        g_return_val_if_fail (a_list_of_strings, NULL);

        for (cur = a_list_of_strings; cur; cur = cur->next) {
                CRString *str = NULL;

                str = cr_string_dup ((CRString *) cur->data) ;
                if (str)
                        result = g_list_append (result, str);
        }

        return result;
}


Generated by  Doxygen 1.6.0   Back to index