Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbNumberCopy

Copy a number from pSource to pDest.

Declaration

CTDBRET ctdbNumberCopy(pCTNUMBER pDest, pCTNUMBER pSource)

Description

ctdbNumberAbs() copies a number from pSource to pDest.

  • pDest [out] pointer to the destination of the copy operation.
  • pSource [in] pointer to the source value to be copied.

Returns

ctdbNumberAbs() returns CTDBRET_OK on success, or c-treeDB API error on failure. The possible errors associated with ctdbNumberAbs() are:

  • CTDBRET_NULARG (4007): Null argument not valid in any operand

See also

ctdbNumberAdd(), ctdbNumberSub(), ctdbNumberMul(), ctdbNumberDiv(), ctdbNumberCmp(), ctdbNumberNegate(), ctdbNumberZero(), ctdbNumberRound(), ctdbNumberCopy(), ctdbNumberGetDecimal()

TOCIndex