H5Oget_comment

fnssize_t H5Oget_comment(hid_t obj_id, char * comment, size_t bufsize)

Gets the comment for an object.

Parameters

obj_idObject identifier
commentBuffer to receive the comment
bufsizeSize of the comment buffer

Returns

Length of comment on success, negative on failure.