Product Documentation

FairCom DB 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 FairCom DB API error on failure.

The possible error associated with ctdbLongToNumber() is:

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

See also

ctdbNumberToLong()

TOCIndex