H5Oget_comment_by_name

fnssize_t H5Oget_comment_by_name(hid_t loc_id, const char * name, char * comment, size_t bufsize, hid_t lapl_id)

Gets the comment for an object by name.

Parameters

loc_idLocation identifier
nameObject name
commentBuffer to receive the comment
bufsizeSize of the comment buffer
lapl_idLink access property list identifier

Returns

Length of comment on success, negative on failure.