diff options
-rw-r--r-- | examples/h5_extend_write.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/h5_extend_write.c b/examples/h5_extend_write.c index 133e2aa..3320544 100644 --- a/examples/h5_extend_write.c +++ b/examples/h5_extend_write.c @@ -43,6 +43,7 @@ main (void) int data3[2][2] = { {3, 3}, {3, 3} }; + int fillvalue = 0; /* * Create the data space with unlimited dimensions. @@ -59,6 +60,7 @@ main (void) */ cparms = H5Pcreate(H5P_DATASET_CREATE); status = H5Pset_chunk( cparms, RANK, chunk_dims); + status = H5Pset_fill_value (cparms, H5T_NATIVE_INT, &fillvalue ); /* * Create a new dataset within the file using cparms |