Determines whether an attribute with a given name exists on an object
Procedure:
H5A_EXISTS(obj_id, attr_name)
Signature:
htri_t H5Aexists
(
hid_t obj_id,
const char *attr_name
)
SUBROUTINE h5aexists_f(obj_id, attr_name, attr_exists, hdferr)
IMPLICIT NONE
INTEGER(HID_T), INTENT(IN) :: obj_id ! Object identifier
CHARACTER(LEN=*), INTENT(IN) :: attr_name ! Attribute name
LOGICAL, INTENT(OUT) :: attr_exists ! .TRUE. if exists, .FALSE. otherwise
INTEGER, INTENT(OUT) :: hdferr ! Error code:
! 0 on success and -1 on failure
END SUBROUTINE
Parameters:
hid_t obj_id | IN: Object identifier; may be a file, group, dataset, or named datatype |
const char * attr_name | IN: Attribute name |
Description:
H5A_EXISTS determines whether the attribute attr_name
exists on the object specified by obj_id
.
Returns:
Returns a positive value if attr_name
exists.
Returns 0 if attr_name
does not exist.
Returns a negative value when the function fails.
Example:
History:
Release | Change |
---|
1.8.0 | Function introduced in this release. |
--- Last Modified: December 20, 2018 | 01:57 PM