Logo Search packages:      
Sourcecode: inkscape version File versions

CRNum* cr_num_dup ( CRNum a_this  ) 

Duplicates an instance of CRNum

Parameters:
a_this the instance of CRNum to duplicate.
Returns:
the newly created (duplicated) instance of CRNum. Must be freed by cr_num_destroy().

Definition at line 231 of file cr-num.c.

References cr_num_copy(), and cr_num_new().

{
        CRNum *result = NULL;
        enum CRStatus status = CR_OK;

        g_return_val_if_fail (a_this, NULL);

        result = cr_num_new ();
        g_return_val_if_fail (result, NULL);

        status = cr_num_copy (result, a_this);
        g_return_val_if_fail (status == CR_OK, NULL);

        return result;
}


Generated by  Doxygen 1.6.0   Back to index