Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbMoneyToCurrency

Convert a CTMONEY value to a CTCURRENCY value.

Declaration

CTDBRET ctdbMoneyToCurrency(CTMONEY money, pCTCURRENCY pCurrency)

Description

ctdbMoneyToCurrency() converts a CTMONEY value to a CTCURRENCY value. A currency value is an 8 bytes integer. Use ctdbCurrencyToMoney() to convert from a CTCURRENCY value to a CTMONEY value.

  • money [in] the CTMONEY value.
  • pCurrency [out] the CTCURRENCY value (8 bytes integer).

Returns

ctdbMoneyToCurrency() returns CTDBRET_OK on success, or c-treeDB API error on failure.

The possible error associated with ctdbMoneyToCurrency() is:

  • CTDBRET_NULARG (4007): Null argument not valid in pStr

See also

ctdbCurrencyToMoney()

TOCIndex