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

# H5S_COPY

The H5S_COPY function copies an existing dataspace.

## Syntax

Result = H5S_COPY(Dataspace_id)

## Return Value

Returns the dataspace’s identifier number. The dataspace identifier can be released with the H5S_CLOSE.

## Arguments

### Dataspace_id

An integer representing the dataspace identifier to copy.

## Keywords

None

## Version History

5.6 | Introduced

## See Also

H5S_CREATE_SIMPLE, H5S_CLOSE