summaryrefslogtreecommitdiffstats
path: root/examples/h5_chunk_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/h5_chunk_read.c')
-rw-r--r--examples/h5_chunk_read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/h5_chunk_read.c b/examples/h5_chunk_read.c
index 0ee70db..0c5d03c 100644
--- a/examples/h5_chunk_read.c
+++ b/examples/h5_chunk_read.c
@@ -47,8 +47,8 @@ main (void)
*/
filespace = H5Dget_space(dataset); /* Get filespace handle first. */
- rank = H5Sextent_ndims(filespace);
- status_n = H5Sextent_dims(filespace, dims, NULL);
+ rank = H5Sget_simple_extent_ndims(filespace);
+ status_n = H5Sget_simple_extent_dims(filespace, dims, NULL);
printf("dataset rank %d, dimensions %lu x %lu\n",
rank, (unsigned long)(dims[0]), (unsigned long)(dims[1]));