summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>1998-06-11 02:21:42 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>1998-06-11 02:21:42 (GMT)
commit8176cbf5515fc20f567a5dc218ce427e885865c0 (patch)
tree0b8c8b7bead34159a8095dbe82951810956ef2aa /examples
parent1b10bda46cd71d0ecd0a37ca5708220f7072461b (diff)
downloadhdf5-8176cbf5515fc20f567a5dc218ce427e885865c0.zip
hdf5-8176cbf5515fc20f567a5dc218ce427e885865c0.tar.gz
hdf5-8176cbf5515fc20f567a5dc218ce427e885865c0.tar.bz2
[svn-r421] Updated example with current hdf5 data types.
Diffstat (limited to 'examples')
-rw-r--r--examples/h5_extend_write.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/examples/h5_extend_write.c b/examples/h5_extend_write.c
index 2417cc0..d97f420 100644
--- a/examples/h5_extend_write.c
+++ b/examples/h5_extend_write.c
@@ -19,16 +19,16 @@ main ()
hid_t datatype, dataspace, dataset;
hid_t filespace;
hid_t cparms;
- size_t dims[2] = { 3, 3}; /* dataset dimensions
+ hsize_t dims[2] = { 3, 3}; /* dataset dimensions
at the creation time */
- size_t dims1[2] = { 3, 3}; /* data1 dimensions */
- size_t dims2[2] = { 7, 1}; /* data2 dimensions */
- size_t dims3[2] = { 2, 2}; /* data3 dimensions */
-
- size_t maxdims[2] = {H5S_UNLIMITED, H5S_UNLIMITED};
- size_t chunk_dims[2] ={2, 5};
- size_t size[2];
- int offset[2];
+ hsize_t dims1[2] = { 3, 3}; /* data1 dimensions */
+ hsize_t dims2[2] = { 7, 1}; /* data2 dimensions */
+ hsize_t dims3[2] = { 2, 2}; /* data3 dimensions */
+
+ hsize_t maxdims[2] = {H5S_UNLIMITED, H5S_UNLIMITED};
+ hsize_t chunk_dims[2] ={2, 5};
+ hsize_t size[2];
+ hssize_t offset[2];
herr_t status;