Last modified: 29 August 2012
Name: H5Tget_super

Signature:
hid_t H5Tget_super( hid_t dtype_id )

Purpose:
Returns the base datatype from which a datatype is derived.

Description:
H5Tget_super returns the base datatype from which the datatype dtype_id is derived.

In the case of an enumeration type, the return value is an integer type.

The datatype identifier returned by this function can be released with H5Tclose when the identifier is no longer needed so that resource leaks will not develop.

Parameters:
hid_t dtype_id     IN: Datatype identifier for the derived datatype.

Returns:
Returns the datatype identifier for the base datatype if successful; otherwise returns a negative value.

Fortran90 Interface: h5tget_super_f
SUBROUTINE h5tget_super_f(type_id, base_type_id, hdferr) 
  IMPLICIT NONE
  INTEGER(HID_T), INTENT(IN) :: type_id  ! Datatype identifier 
  INTEGER(HID_T), INTENT(OUT) :: type_id ! Base datatype identifier 
  INTEGER, INTENT(OUT) :: hdferr         ! Error code
                                         ! 0 on success and -1 on failure
END SUBROUTINE h5tget_super_f