Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetField

Retrieve a field handle from a table, based on the field number.

Declaration

CTHANDLE ctdbGetField(CTHANDLE Handle, NINT Index)

Description

ctdbGetField() retrieves a field handle from a table, based on the field number. To retrieve a field handle from a table, based on the field name, use ctdbGetFieldByName(). To retrieve the field number, use ctdbGetFieldNumber().

  • Handle [in] the Table Handle.
  • Index [in] the field number that identifies the field in the table.

Returns

ctdbGetField() returns the field handle or NULL on error.

See also

ctdbAllocTable(), ctdbGetFieldByName(), ctdbGetFieldNumber()

TOCIndex