summaryrefslogtreecommitdiffstats
path: root/examples/h5_vds-exc.c
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2015-03-10 22:15:20 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2015-03-10 22:15:20 (GMT)
commitca2a0b80c5ca46db7b167cf384bd6e32dfe075c5 (patch)
tree1032c73973af76e2d04fbdb57b9fd023b5cc8d58 /examples/h5_vds-exc.c
parent92d7b82d61458f9576dc30236b9f9ce03adde9c3 (diff)
downloadhdf5-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-exc.c')
-rw-r--r--examples/h5_vds-exc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/h5_vds-exc.c b/examples/h5_vds-exc.c
index ceafe68..509b3e1 100644
--- a/examples/h5_vds-exc.c
+++ b/examples/h5_vds-exc.c
@@ -5,6 +5,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>
@@ -171,10 +172,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 */
@@ -200,6 +201,7 @@ main (void)
free(filename);
free(dsetname);
}
+/* EIP read data back */
/*
* Close and release resources.