Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbBigIntToLong

Convert a big integer value to a LONG.

Declaration

CTDBRET ctdbBigIntToLong(CTBIGINT value, pLONG pLong)

Description

ctdbBigIntToLong() converts a big integer value to a LONG. A big integer is an 8 bytes integer value. Use ctdbLongToBigInt() to convert from a LONG to a big integer.

  • value [in] the big integer value (8 bytes signed integer).
  • pLong [out] the CTSIGNED LONG value (4 bytes signed integer).

Returns

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

Possible errors associated with ctdbBigIntToLong() are:

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

See also

ctdbLongToBigInt()

TOCIndex