Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5S_CLOSE

Releases and terminates access to a dataspace.

Procedure:

H5S_CLOSE ( space_id )

Signature:

herr_t H5Sclose(
                   hid_t space_id
    )

Fortran90 Interface: h5sclose_f
    
SUBROUTINE h5sclose_f(space_id, hdferr)     
  IMPLICIT NONE
  INTEGER(HID_T), INTENT(IN) :: space_id  ! Dataspace identifier
  INTEGER, INTENT(OUT) :: hdferr          ! Error code
                                          ! 0 on success and -1 on failure
END SUBROUTINE h5sclose_f

Parameters:

hid_t space_id     IN: Identifier of dataspace to release.

Description:

H5Sclose releases a dataspace. Further access through the dataspace identifier is illegal. Failure to release a dataspace with this call will result in resource leaks.

Returns:

Returns a non-negative value if successful; otherwise returns a negative value.

Example:

examples / h5_crtdat.c [42:44]  1.10/master  HDFFV/hdf5
   /* Terminate access to the data space. */ 
   status = H5Sclose(dataspace_id);

  ! Terminate access to the data space.
  !
  CALL h5sclose_f(dspace_id, error)

History:

None

--- Last Modified: December 04, 2017 | 07:58 AM