Page tree

The license could not be verified: License Certificate has expired!

 

JAVA

FORTRAN

C++

C

 

Link

H5A_EXISTS

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_idIN: 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:

Coming Soon!

History:
Release    C
1.8.0Function introduced in this release.

--- Last Modified: April 17, 2018 | 12:45 PM