copyval
copyval |
Purpose
Perform an assignment between two objects of the same external type.
Synopsis
int copyval(XPRMcontext ctx,int type, void *dst,void *src);
Arguments
ctx
|
Mosel's execution context
|
type
|
Code of the external type
|
dst
|
Entity to be assigned (must not be
NULL)
|
src
|
Source entity
|
Return value
0 if successful, 1 otherwise.
Further information
1. This function calls directly the
copy routine of the module. It is therefore recommended to check whether the type supports this functionality before using this function (see
gettypeprop).
2. This routine can also be used with structured user defined types (like sets, arrays or records).
Related topics