Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbLongToCurrency

Convert a LONG value to a CTCURRENCY value.

Declaration

CTDBRET ctdbLongToCurrency(CTSIGNED value, pCTCURRENCY pCurrency)

Description

ctdbLongToCurrency() converts a CTSIGNED (4 bytes signed integer) value to a CTCURRENCY (8 bytes signed integer) value. Use ctdbCurrencyToLong() to convert from a CTCURRENCY value to a LONG value.

  • value [in] the CTSIGNED value (4 bytes integer).
  • pCurrency [out] the CTCURRENCY value (8 bytes integer).

Returns

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

The possible error associated with ctdbLongToCurrency() is:

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

See also

ctdbCurrencyToLong()

TOCIndex