cmpval
cmpval |
Purpose
Compare two objects of the same external type.
Synopsis
int cmpval(XPRMcontext ctx,int type, void *left,void *right);
Arguments
ctx
|
Mosel's execution context
|
type
|
Code of the external type and operation (
i.e.
XPRM_COMPARE_*)
|
left
|
Left operand of the comparison
|
right
|
Right operand of the comparison
|
Return value
Result of the operation or
XPRM_COMPARE_ERROR in case of error.
Further information
This function calls directly the
compare 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).
Related topics