Initializing help system before first use

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

© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.