Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbNumberToLong

Convert a CTNUMBER value to a LONG.

Declaration

CTDBRET ctdbNumberToLong(pCTNUMBER pNumber, pLONG pValue)

Description

ctdbNumberToLong() converts a CTNUMBER value to a LONG. Use ctdbLongToNumber() to convert from LONG to CTNUMBER. Use ctdbNumberToBigInt() to convert a CTNUMBER to a big integer (8 byte integer).

  • pNumber [in] pointer to the CTNUMBER value.
  • pValue [out] pointer to the LONG value.

Returns

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

The possible error associated with ctdbNumberToLong() is:

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

See also

ctdbLongToNumber(), ctdbNumberToBigInt()

TOCIndex