H5Iremove_verify

fnvoid * H5Iremove_verify(hid_t id, H5I_type_t type)

Removes an identifier from its type and returns the associated object.

First verifies that the identifier belongs to the specified type, then removes it and returns the associated object pointer. The object is not freed; the caller is responsible for cleanup.

Parameters

idThe identifier to remove
typeThe expected type of the identifier

Returns

A pointer to the object on success, or null if the ID is invalid

or does not belong to the specified type.