Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbCurrencyToString

Convert a CTCURRENCY value to a string value.

Declaration

CTDBRET ctdbCurrencyToString(CTCURRENCY currency, pTEXT pStr, VRLEN size)

Description

ctdbCurrencyToString() converts a CTCURRENCY (8 bytes signed integer) value to a string value. Use ctdbStringToCurrency() to convert from a string to a CTCURRENCY value.

  • currency [in] the CTCURRENCY value (8 bytes integer).
  • pStr [out] the string value.
  • size [in] the string size in bytes.

Returns

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

The possible error associated with ctdbCurrencyToString() is:

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

See also

ctdbStringToCurrency()

TOCIndex