Verifies that the selection is within the extent of the dataspace

Procedure:

H5S_SELECT_VALID ( space_id )

Signature:

<pre><code class="language-c">htri_t H5Sselect_valid(
            hid_t space_id
        )
</code></pre>

<pre><code class="language-fortran">Fortran90 Interface: h5sselect_valid_f
    
SUBROUTINE h5sselect_valid_f(space_id, flag, hdferr) 
  IMPLICIT NONE
  INTEGER(HID_T), INTENT(IN) :: space_id  ! Dataspace identifier 
  LOGICAL, INTENT(OUT) :: flag            ! TRUE if the selection is
                                          ! contained within the extent,
                                          ! FALSE otherwise. 
  INTEGER, INTENT(OUT) :: hdferr          ! Error code
                                          ! 0 on success and -1 on failure
END SUBROUTINE h5sselect_valid_f
</code></pre>

Parameters:

hid_t space_id     IN: Identifier for the dataspace being queried

Description:

H5S_SELECT_VALID verifies that the selection for the dataspace space_id is within the extent of the dataspace if the current offset for the dataspace is used.

Returns:

Returns a positive value if the selection is contained within the extent.

Returns 0 if the selection is not contained within the extent.

Returns a negative value on error conditions such as the selection or extent not being defined.

Example:

Coming Soon!

History:
None