summaryrefslogtreecommitdiffstats
path: root/examples/h5_extend_write.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-02-25 19:13:49 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-02-25 19:13:49 (GMT)
commitc543632ba5cd609d2e6303fa9cf55685568fa851 (patch)
tree375e501aa060248c9e71fb6e5630ec64a47229ab /examples/h5_extend_write.c
parentfaa3f5739e0b52d84d119791b6859fe610b76d37 (diff)
downloadhdf5-c543632ba5cd609d2e6303fa9cf55685568fa851.zip
hdf5-c543632ba5cd609d2e6303fa9cf55685568fa851.tar.gz
hdf5-c543632ba5cd609d2e6303fa9cf55685568fa851.tar.bz2
[svn-r297] Switched templates to "property lists" and changed API prefix from H5C to H5P
Diffstat (limited to 'examples/h5_extend_write.c')
-rw-r--r--examples/h5_extend_write.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/h5_extend_write.c b/examples/h5_extend_write.c
index 1d0438b..2417cc0 100644
--- a/examples/h5_extend_write.c
+++ b/examples/h5_extend_write.c
@@ -49,13 +49,13 @@ dataspace = H5Screate_simple(RANK, dims, maxdims);
/*
* Create a new file. If file exists its contents will be overwritten.
*/
-file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5C_DEFAULT, H5C_DEFAULT);
+file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
/*
* Modify dataset creation properties, i.e. enable chunking.
*/
-cparms = H5Ccreate (H5C_DATASET_CREATE);
-status = H5Cset_chunk( cparms, RANK, chunk_dims);
+cparms = H5Pcreate (H5P_DATASET_CREATE);
+status = H5Pset_chunk( cparms, RANK, chunk_dims);
/*
* Create a new dataset within the file using cparms
@@ -83,7 +83,7 @@ status = H5Sset_hyperslab(filespace, offset, dims1, NULL);
* Write the data to the hyperslab.
*/
status = H5Dwrite(dataset, H5T_NATIVE_INT, dataspace, filespace,
- H5C_DEFAULT, data1);
+ H5P_DEFAULT, data1);
/*
* Extend the dataset. Dataset becomes 10 x 3.
@@ -110,7 +110,7 @@ dataspace = H5Screate_simple(RANK, dims2, NULL);
* Write the data to the hyperslab.
*/
status = H5Dwrite(dataset, H5T_NATIVE_INT, dataspace, filespace,
- H5C_DEFAULT, data2);
+ H5P_DEFAULT, data2);
/*
* Extend the dataset. Dataset becomes 10 x 5.
@@ -137,7 +137,7 @@ dataspace = H5Screate_simple(RANK, dims3, NULL);
* Write the data to the hyperslab.
*/
status = H5Dwrite(dataset, H5T_NATIVE_INT, dataspace, filespace,
- H5C_DEFAULT, data3);
+ H5P_DEFAULT, data3);
/*
* Resulting dataset