ctdbCurrencyAdd
Add two currency values. pResult = left + right
Declaration
CTDBRET ctdbCurrencyAdd(CTCURRENCY left, CTCURRENCY right, pCTCURRENCY pResult)
Description
ctdbCurrencyAdd() adds two currency values. pResult = left + right. Do not make regular additions with CTCURRENCY values.
Returns
ctdbCurrencyAdd() returns CTDBRET_OK on success, or c-treeDB API error on failure.
The possible errors associated with ctdbCurrencyAdd() are:
See also
ctdbCurrencySub(), ctdbCurrencyMul(), ctdbCurrencyDiv()