Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbGetResourceNumber

Retrieve the resource number.

DECLARATION

ULONG ctdbDECL ctdbGetResourceNumber(CTHANDLE resource);

DESCRIPTION

Retrieves the resource number. resource is a handle allocated by ctdbAllocResource().

RETURN

Return the resource number

EXAMPLE

if (ctdbGetResourceNumber(hRes) != number)

ctdbSetResourceNumber(hRes, number);

SEE ALSO

ctdbAllocResource(), ctdbFreeResource(), ctdbAddResource(), ctdbDeleteResource(), ctdbFirstResource(), ctdbNextResource(), ctdbFindResource(), ctdbFindResourceByName(), ctdbGetResourceType(), ctdbSetResourceType(), ctdbUpdateResource(), ctdbSetResourceNumber(), ctdbGetResourceName(), ctdbSetResourceName(), ctdbGetResourceDataLength(), ctdbGetResourceData(), ctdbSetResourceData(), ctdbIsResourceLocked(), ctdbUnlockResource()

TOCIndex