Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbStringToNumber

Convert a string type value to a CTNUMBER.

Declaration

CTDBRET ctdbStringToNumber(pTEXT pStr, pCTNUMBER pNumber)

Description

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

  • pStr [in] the input string to the conversion.
  • pNumber [out] pointer to CTNUMBER that will result from the conversion.

Returns

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

The possible errors associated with ctdbStringToNumber() are:

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

See also

ctdbNumberToString()

TOCIndex