Retrieves the number of elements in a compound or enumeration datatype

Procedure:

H5T_GET_NMEMBERS (dtype_id)

Signature:

<pre><code class="language-c">int H5Tget_nmembers( hid_t dtype_id )</code></pre>

<pre><code class="language-fortran">SUBROUTINE h5tget_nmembers_f(type_id, num_members, hdferr) 
  IMPLICIT NONE
  INTEGER(HID_T), INTENT(IN) :: type_id ! Datatype identifier 
  INTEGER, INTENT(OUT) :: num_members   ! Number of fields in a 
                                        ! compound datatype 
  INTEGER, INTENT(OUT) :: hdferr        ! Error code
END SUBROUTINE h5tget_nmembers_f</code></pre>

Parameters:
hid_t dtype_id    IN: Identifier of datatype to query

Description:

H5T_GET_NMEMBERS retrieves the number of fields in a compound datatype or the number of members of an enumeration datatype.

Returns:

Returns the number of elements if successful; otherwise returns a negative value.

Example:

Coming Soon!