Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbNumberToString

Convert a CTNUMBER value to a string.

Declaration

CTDBRET ctdbNumberToString(pCTNUMBER pNumber, pTEXT pStr, VRLEN size)

Description

ctdbNumberToString() converts a CTNUMBER value to a string. Use ctdbStringToNumber() to convert from a string to CTNUMBER.

  • pNumber [in] pointer to CTNUMBER value.
  • pStr [out] the pointer to the string that will result from the conversion.
  • size [in] the buffer size (in bytes) of the string.

Returns

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

The possible errors associated with ctdbNumberToString() are:

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

See also

ctdbStringToNumber()

TOCIndex