Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbStringToBigInt

Convert a string to a big integer value.

Declaration

CTDBRET ctdbStringToBigInt(pTEXT pStr, pCTBIGINT pValue)

Description

ctdbStringToBigInt() converts a string to a big integer value. A big integer is an 8 bytes integer value. Use ctdbBigIntToString() to convert from a big integer to a string.

  • pStr [in] the string value.
  • pValue [out] the big integer value (8 bytes signed integer).

Returns

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

The possible error associated with ctdbStringToBigInt() is:

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

See also

ctdbBigIntToString()

TOCIndex