Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbStringToMoney

Convert a string value to a CTMONEY type value.

Declaration

CTDBRET ctdbStringToMoney(pTEXT pStr, pCTMONEY pMoney)

Description

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

  • pStr [in] the pointer to the string.
  • pMoney [out] the pointer to a CTMONEY type value.

Returns

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

The possible errors associated with ctdbStringToMoney() are:

  • CTDBRET_NULARG (4007): Null argument not valid in pStr
  • CTDBRET_OVERFLOW (4038): Operation caused overflow

See also

ctdbMoneyToString()

TOCIndex