Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbLongToNumber

Convert a LONG to a CTNUMBER value.

Declaration

CTDBRET ctdbLongToNumber(LONG value, pCTNUMBER pNumber)

Description

ctdbLongToNumber() converts a LONG to a CTNUMBER value. Use ctdbNumberToLong() to convert from CTNUMBER to a LONG.

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

Returns

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

The possible error associated with ctdbLongToNumber() is:

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

See also

ctdbNumberToLong()

TOCIndex