summaryrefslogtreecommitdiffstats
path: root/examples/h5_vds-eiger.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/h5_vds-eiger.c')
-rw-r--r--examples/h5_vds-eiger.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/h5_vds-eiger.c b/examples/h5_vds-eiger.c
index d35fc85..93b39b2 100644
--- a/examples/h5_vds-eiger.c
+++ b/examples/h5_vds-eiger.c
@@ -6,6 +6,7 @@
This file is intended for use with HDF5 Library version 1.10
************************************************************/
+/* EIP Add link to the picture */
#include "hdf5.h"
#include <stdio.h>
@@ -133,10 +134,10 @@ main (void)
if (H5Sget_select_type(vspace) == H5S_SEL_HYPERSLABS) {
if (H5Sis_regular_hyperslab(vspace)) {
status = H5Sget_regular_hyperslab (vspace, start_out, stride_out, count_out, block_out);
- printf(" start = [%d, %d, %d] \n", (int)start_out[0], (int)start_out[1], (int)start_out[2]);
- printf(" stride = [%d, %d, %d] \n", (int)stride_out[0], (int)stride_out[1], (int)stride_out[2]);
- printf(" count = [%d, %d, %d] \n", (int)count_out[0], (int)count_out[1], (int)count_out[2]);
- printf(" block = [%d, %d, %d] \n", (int)block_out[0], (int)block_out[1], (int)block_out[2]);
+ printf(" start = [%llu, %llu, %llu] \n", (unsigned long long)start_out[0], (unsigned long long)start_out[1], (unsigned long long)start_out[2]);
+ printf(" stride = [%llu, %llu, %llu] \n", (unsigned long long)stride_out[0], (unsigned long long)stride_out[1], (unsigned long long)stride_out[2]);
+ printf(" count = [%llu, %llu, %llu] \n", (unsigned long long)count_out[0], (unsigned long long)count_out[1], (unsigned long long)count_out[2]);
+ printf(" block = [%llu, %llu, %llu] \n", (unsigned long long)block_out[0], (unsigned long long)block_out[1], (unsigned long long)block_out[2]);
}
}
/* Get source file name */
@@ -157,6 +158,7 @@ main (void)
if(H5Sget_select_type(src_space) == H5S_SEL_ALL) {
printf("H5S_ALL \n");
}
+/* EIP read data back */
H5Sclose(vspace);
H5Sclose(src_space);
free(filename);