Routines (alphabetical) > Routines: H > HDF5 Routines > H5S_SELECT_VALID

# H5S_SELECT_VALID

The H5S_SELECT_VALID function verifies that the selection is within the extent of a dataspace.

## Syntax

Result = H5S_SELECT_VALID(Dataspace_id)

## Return Value

Returns 1 if the selection is within the dataspace and 0 if it is not.

## Arguments

### Dataspace_id

An integer representing the dataspace’s identifier to be queried.

## Keywords

None

## Version History

5.6 | Introduced

## See Also

H5S_GET_SELECT_NPOINTS, H5S_SELECT_ELEMENTS, H5S_SELECT_HYPERSLAB