H5Fget_name

fnssize_t H5Fget_name(hid_t obj_id, char * name, size_t size)

Retrieves the name of the file to which an object belongs.

Parameters

obj_idIdentifier of an object in the file
nameBuffer to receive the file name
sizeSize of the name buffer

Returns

The length of the file name on success, negative on failure.