Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetFieldOffset

Retrieve the field offset in record buffer

Declaration

VRLEN ctdbGetFieldOffset(CTHANDLE Handle, NINT FieldNbr)

Description

ctdbGetFieldOffset() retrieves the field offset in record buffer.

  • Handle [in] the record handle.
  • FieldNbr [in] the field number.

Returns

ctdbGetFieldOffset() returns the field offset.

Example


pMyRec1 = ctdbAllocRecord(pMyTable1);

ctdbFirstRecord(pMyRec1);

field0_offset = ctdbGetFieldOffset(pMyRec1, 0);

See also

ctdbGetFieldAddress()

TOCIndex