diff options
author | Elena Pourmal <epourmal@hdfgroup.org> | 2015-03-10 22:15:20 (GMT) |
---|---|---|
committer | Elena Pourmal <epourmal@hdfgroup.org> | 2015-03-10 22:15:20 (GMT) |
commit | ca2a0b80c5ca46db7b167cf384bd6e32dfe075c5 (patch) | |
tree | 1032c73973af76e2d04fbdb57b9fd023b5cc8d58 /examples/h5_vds-eiger.c | |
parent | 92d7b82d61458f9576dc30236b9f9ce03adde9c3 (diff) | |
download | hdf5-ca2a0b80c5ca46db7b167cf384bd6e32dfe075c5.zip hdf5-ca2a0b80c5ca46db7b167cf384bd6e32dfe075c5.tar.gz hdf5-ca2a0b80c5ca46db7b167cf384bd6e32dfe075c5.tar.bz2 |
[svn-r26420] Added new example for simple I/O. Modified other examples according to the suggestion in H5VDS-7 (see VDS-178)
Diffstat (limited to 'examples/h5_vds-eiger.c')
-rw-r--r-- | examples/h5_vds-eiger.c | 10 |
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); |