The SEDRIS Data Representation Model
APPENDIX D - Functions SE CloneDataQualityElement |
---|
extern SE_DRM_Status_Code | ||||
SE_CloneDataQualityElement | ||||
( | ||||
const | SE_Data_Quality_Element | * | src_ptr, | 1 |
SE_Data_Quality_Element | * | dest_ptr | 2 | |
); |
Clones the data from *src_ptr into *dest_ptr, by allocating memory for any necessary internal pointers within *dest_ptr, then populating *dest_ptr with data from *src_ptr.
IMPORTANT NOTES:
SE_DRM_STAT_CODE_SUCCESS | and memory is allocated for any dynamically allocated data within the structure, and it is populated with data copied from *src_ptr, if valid parameters were passed in. |
SE_DRM_STAT_CODE_NULL_REQUIRED_PARAMETER | and *dest_ptr is left unchanged, if dest_ptr or and src_ptr was NULL. |
SE_DRM_STAT_CODE_FAILURE | and *dest_ptr is set to its (empty) default value, if the API could not allocate the memory for the dynamically allocated memory it should refer to. |
1 the SE_Data_Quality_Element that is to be duplicated
2 a pointer to an SE_Data_Quality_Element structure within memory managed by the caller. Non-dynamically allocated fields in this structure will be directly populated with data from the input fields. Dynamically allocated data will be allocated by this function, then copied from the input structure.
Prev: SE_CloneContactInformation.
Next: SE_CloneFields.
Up:Index.
|