summaryrefslogtreecommitdiffstats
path: root/examples/h5_extend_write.c
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>1998-07-08 20:41:14 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>1998-07-08 20:41:14 (GMT)
commit44d5c8823eb4370ff70bf7ed56c8eae7404d222c (patch)
tree66589a703e3b7f69fc4fbcc7957923ebf4c14ef5 /examples/h5_extend_write.c
parent768b7465a19afcbc87ba54a7b6400492d54c2626 (diff)
downloadhdf5-44d5c8823eb4370ff70bf7ed56c8eae7404d222c.zip
hdf5-44d5c8823eb4370ff70bf7ed56c8eae7404d222c.tar.gz
hdf5-44d5c8823eb4370ff70bf7ed56c8eae7404d222c.tar.bz2
[svn-r472] Examples have been modified to reflect the current status of the API functions.
Tested on Solaris 2.5
Diffstat (limited to 'examples/h5_extend_write.c')
-rw-r--r--examples/h5_extend_write.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/h5_extend_write.c b/examples/h5_extend_write.c
index d97f420..6b20a1e 100644
--- a/examples/h5_extend_write.c
+++ b/examples/h5_extend_write.c
@@ -77,7 +77,8 @@ status = H5Dextend (dataset, size);
filespace = H5Dget_space (dataset);
offset[0] = 0;
offset[1] = 0;
-status = H5Sset_hyperslab(filespace, offset, dims1, NULL);
+status = H5Sselect_hyperslab(filespace, H5S_SELECT_SET, offset, NULL,
+ dims1, NULL);
/*
* Write the data to the hyperslab.
@@ -99,7 +100,8 @@ status = H5Dextend (dataset, size);
filespace = H5Dget_space (dataset);
offset[0] = 3;
offset[1] = 0;
-status = H5Sset_hyperslab(filespace, offset, dims2, NULL);
+status = H5Sselect_hyperslab(filespace, H5S_SELECT_SET, offset, NULL,
+ dims2, NULL);
/*
* Define memory space
@@ -126,7 +128,8 @@ status = H5Dextend (dataset, size);
filespace = H5Dget_space (dataset);
offset[0] = 0;
offset[1] = 3;
-status = H5Sset_hyperslab(filespace, offset, dims3, NULL);
+status = H5Sselect_hyperslab(filespace, H5S_SELECT_SET, offset, NULL,
+ dims3, NULL);
/*
* Define memory space.