Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbMoneyToLong

Convert a CTMONEY value to a LONG.

Declaration

CTDBRET ctdbMoneyToLong(CTMONEY money, pLONG pValue)

Description

ctdbMoneyToLong() converts a CTMONEY value to a LONG. The Fraction part of CTMONEY is discarded and only the integer part is assigned. Use ctdbLongToMoney() to convert from a LONG to CTMONEY.

  • money [in] the CTMONEY value.
  • pValue [out] the LONG value representing the integer part of the monetary value.

Returns

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

The possible error associated with ctdbMoneyToLong() is:

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

See also

ctdbLongToMoney()

TOCIndex