H5LT_GET_ATTRIBUTE_STRING
Reads an attribute from disk
Procedure:
H5LT_GET_ATTRIBUTE_STRING (loc_id, obj_name, attr_name, data)
Signature:
herr_t H5LTget_attribute_string( hid_t loc_id, const char *obj_name, const char *attr_name, char *data )
subroutine h5ltget_attribute_string_f(loc_id, dset_name, attr_name, &
buf, errcode)
implicit none
integer(HID_T), intent(IN) :: loc_id ! file or group identifier
character(LEN=*), intent(IN) :: dset_name ! name of the dataset
character(LEN=*), intent(IN) :: attr_name ! name of the attribute
integer :: errcode ! error code
character(LEN=*), intent(INOUT) :: buf ! data buffer
end subroutine h5ltget_attribute_string_f
Parameters:
hid_t loc_id | IN: Identifier of the object ( dataset or group) to read the attribute from |
const char *obj_name | IN: The name of the object that the attribute is attached to |
const char *attr_name | IN: The attribute name |
char * data | OUT: Buffer with data |
Description:
H5LT_GET_ATTRIBUTE_STRING reads an attribute named attr_name
that is attached to the object specified by the name obj_name.
The datatype is a string.
Returns:
Returns a non-negative value if successful; otherwise returns a negative value.
Example:
History:
Release | Change |
---|
1.8.9 | The content of the buffer returned by the Fortran subroutine has changed in this release: If the returned buffer requires padding, h5ltget_attribute_string_f now employs space padding; this buffer was previously returned with a C NULL terminator. |
--- Last Modified: August 13, 2019 | 01:45 PM