
A2.2 Ox function summary 33
void OxValSetDouble(OxVALUE *pv, int dVal);
void OxValSetInt(OxVALUE *pv, int iVal);
void OxValSetNull(OxVALUE *pv);
void OxValSetString(OxVALUE *pv, const char *sVal);
void OxValSetZero(OxVALUE *pv);
pv in: OxVALUE to set
out: changed value
dVal in: double value
iVal in: integer value
SVal in: string value
No return value.
Description
OxValSetDouble sets pv to a double
OxValSetInt sets pv to an integer
OxValSetString sets pv to a string (the string is duplicated)
OxValSetZero sets pv to an integer with value zero
OxValSetNull sets pv to an integer with value zero and property
OX
NULL
OxValSetDouble, OxValSetInt and OxValSetString call OxFreeByValue
before changing the value (unlike the macro versions); so, if the argument is not
received from Ox, you should first set it to an integer to avoid a spurious call to
free memory. OxValSetZero and OxValSetNull do not call OxFreeByValue.
OxValSetNull sets pv to an integer of value zero with property OX
NULL.Using
such a value in an expression in Ox leads to a run-time error (variable has no
value).
OxValSizec, OxValSizer, OxValSizerc
int OxValSizec(OxVALUE *pv);
int OxValSizer(OxVALUE *pv);
int OxValSizerc(OxVALUE *pv);
pv in: OxVALUE to get size of
No return value.
Description
OxValSizec as Ox function sizec
OxValSizer as Ox function sizer
OxValSizerc as Ox function sizerc
OxValType
int OxValType(OxVALUE *pv);
pv in: OxVALUE to get information from
Return value
returns the type of pv.
Commentaires sur ces manuels