Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetFieldByName

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

Declaration

CTHANDLE ctdbGetFieldByName(CTHANDLE Handle, pTEXT FieldName)

Description

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

  • Handle [in] the Table Handle.
  • FieldName [in] the field name.

Returns

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

See also

ctdbAllocTable(), ctdbGetField(), ctdbGetFieldNumber()

TOCIndex