Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5G_CLOSE

Closes the specified group

Procedure:

H5G_CLOSE(group_id)

Signature:

herr_t H5Gclose(hid_t group_id)

SUBROUTINE h5gclose_f( gr_id, hdferr)
  IMPLICIT NONE
  INTEGER(HID_T), INTENT(IN) :: gr_id     ! Group identifier
  INTEGER, INTENT(OUT) :: hdferr          ! Error code 
                                          ! 0 on success and -1 on failure
END SUBROUTINE h5gclose_f

Parameters:
hid_t group_id    IN: Group identifier to release

Description:

H5G_CLOSE releases resources used by a group which was opened by H5G_CREATE* or H5G_OPEN*. After closing a group, the group_id cannot be used again.

Failure to release a group with this call will result in resource leaks.

Returns:

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

Example:

examples / h5_crtgrp.c [33:35]  1.10/master  HDFFV/hdf5
   /* Close the group. */
   status = H5Gclose(group_id);

  !
  ! Close the group.
  !
  CALL h5gclose_f(group_id, error)

--- Last Modified: May 17, 2018 | 03:05 PM