Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbCurrencyToLong

Convert a CTCURRENCY value to a LONG value.

Declaration

CTDBRET ctdbCurrencyToLong(CTCURRENCY currency, pCTSIGNED pValue)

Description

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

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

Returns

ctdbCurrencyToLong() returns CTDBRET_OK on success, or FairCom DB API error on failure.

The possible error associated with ctdbCurrencyToLong() is:

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

See also

ctdbLongToCurrency()

TOCIndex