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).
 
 
 3. Instead of a type code the argument
 type may be
 XPRM_STR_SET,
 XPRM_STR_LST or
 XPRM_STR_ARR to perform copies between sets, lists or arrays (source and destination entities must be compatible).
 
 
  Related topics
 
  
