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 and operation (
i.e.
XPRM_CPY_*)
|
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 (See section
Table of types). It is therefore recommended to check whether the type supports this functionality and the requested operation before using this function (see
gettypeprop).
2. This routine can also be used with structured user defined types (like sets, arrays or records).
3. Instead of a code of an external type the argument
type may be
XPRM_TYP_CTL,
XPRM_STR_SET,
XPRM_STR_LST or
XPRM_STR_ARR to perform copies between linear constraints, sets, lists or arrays. Source and destination entities must have the same type (the function does not check compatibility of its arguments).
Related topics