Product Documentation

FairCom DB API for C

Previous Topic

Next Topic

ctdbNumberToBigInt

Convert a CTNUMBER value to a big integer.

Declaration

CTDBRET ctdbNumberToBigInt(pCTNUMBER pNumber, pCTBIGINT pValue)

Description

ctdbNumberToBigInt() converts a CTNUMBER value to a big integer (8 bytes). Use ctdbBigIntToNumber() to convert from a big integer to CTNUMBER. Use ctdbNumberToLong() to convert CTNUMBER to a LONG (4 bytes integer).

  • pNumber [in] pointer to CTNUMBER.
  • pValue [out] pointer the CTBIGINT big integer value.

Returns

ctdbNumberToBigInt() returns CTDBRET_OK on success, or FairCom DB API error on failure.

The possible error associated with ctdbNumberToBigInt() is:

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

See also

ctdbBigIntToNumber(), ctdbNumberToLong()

TOCIndex