summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/binread.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2006-09-26 15:47:36 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2006-09-26 15:47:36 (GMT)
commite9188e385af4ac913ee28e26717e9c8fb4336d2f (patch)
tree40ea75ee2506293321c648413e45ae235850a8ce /tools/h5dump/binread.c
parent53a2d21415105951dd5d81969ee6f21d9e7216f8 (diff)
downloadhdf5-e9188e385af4ac913ee28e26717e9c8fb4336d2f.zip
hdf5-e9188e385af4ac913ee28e26717e9c8fb4336d2f.tar.gz
hdf5-e9188e385af4ac913ee28e26717e9c8fb4336d2f.tar.bz2
[svn-r12683]
revised binary flags, added a new file to the test generator program to be used in the binary tests usage is now -o F, --output=F Output raw data into file F -b F, --binary=F Binary output, of form F (into file -o F). Recommended usage is with --dataset=P Form F of binary output is: MEMORY for memory type, FILE for the disk file type, LE or BE for pre-existing little or big endian types example ./h5dump -d integer -b MEMORY -o out.bin tbinary.h5
Diffstat (limited to 'tools/h5dump/binread.c')
-rw-r--r--tools/h5dump/binread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/h5dump/binread.c b/tools/h5dump/binread.c
index 02bb115..108a760 100644
--- a/tools/h5dump/binread.c
+++ b/tools/h5dump/binread.c
@@ -20,15 +20,15 @@
/*
This program reads binary output from h5dump (-b option).
To use change the following 3 symbols accordingly.
- For example, to read 6 elements of a float type , define
+ For example, to read 2 elements of a float type , define
- #define NELMTS 6
+ #define NELMTS 2
#define TYPE float
#define FORMAT "%f "
*/
-#define NELMTS 2
+#define NELMTS 6
#define TYPE int
#define FORMAT "%d "