FairCom Corporation


4.3.11 ctdbAllocRecord


Allocate a new c-treeDB C API record handle.

Declaration

CTHANDLE ctdbAllocRecord(CTHANDLE Handle)

Description

ctdbAllocRecord allocates memory and initialize a new record handle. Before any operation on records can take place, the application must allocate a record handle.

The record handle is released by calling ctdbFreeRecord. Do not release the record handle by calling the C runtime library function free.

Returns

ctdbAllocRecord returns the new allocated handle on success, or NULL on failure.

See also

ctdbAllocTable, ctdbFreeRecord, ctdbGetRecordHandle


FairCom Corporation
www.faircom.com