Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbMoneyToString

Convert a CTMONEY type value to a string.

Declaration

CTDBRET ctdbMoneyToString(CTMONEY money, pTEXT pStr, VRLEN size)

Description

ctdbMoneyToString() converts a CTMONEY value to a string. Use ctdbStringToMoney() to convert from a string to CTMONEY.

  • money [in] the CTMONEY value.
  • pStr [out] the pointer to the string that will result from the conversion.
  • size [in] the buffer size of the string.

Returns

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

The possible errors associated with ctdbMoneyToString() are:

  • CTDBRET_NULARG (4007): Null argument not valid in pStr
  • CTDBRET_ARGSMALL (4006): Argument is too small - increase size

See also

ctdbStringToMoney()

TOCIndex