H5Aget_num_attrs

fnint H5Aget_num_attrs(hid_t loc_id)

Returns the number of attributes attached to an object.

This function is deprecated in favor of H5Oget_info, but is still useful for simple attribute counting.

Parameters

loc_idObject identifier (dataset, group, or named datatype)

Returns

The number of attributes on success, negative on failure.