summaryrefslogtreecommitdiffstats
path: root/doc/html
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2004-11-25 03:17:59 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2004-11-25 03:17:59 (GMT)
commitb07165af2cf7862f7163aee21a6ddbaee6e240bf (patch)
treecf727a82b439affa886495c211b40d29eb727505 /doc/html
parent4bb256128cef7c06a0fed4a01dbd9069ec07df5c (diff)
downloadhdf5-b07165af2cf7862f7163aee21a6ddbaee6e240bf.zip
hdf5-b07165af2cf7862f7163aee21a6ddbaee6e240bf.tar.gz
hdf5-b07165af2cf7862f7163aee21a6ddbaee6e240bf.tar.bz2
[svn-r9577] Purpose:
Added an explanation of ASCII printing for h5dump.
Diffstat (limited to 'doc/html')
-rw-r--r--doc/html/Tools.html16
1 files changed, 15 insertions, 1 deletions
diff --git a/doc/html/Tools.html b/doc/html/Tools.html
index 3be9513..9dbe31f 100644
--- a/doc/html/Tools.html
+++ b/doc/html/Tools.html
@@ -271,6 +271,20 @@ installed with HDF5.
turn and in the order specified above until one driver succeeds
in opening the file.
</p>
+ <p>
+ One byte integer type data is displayed in decimal by default. When
+ displayed in ASCII, a non-printable code is displayed in 3 octal
+ digits preceeded by a back-slash unless there is a C language escape
+ sequence for it. For example, CR and LF are printed as \r and \n.
+ Though the NUL code is represented as \0 in C, it is printed as
+ \000 to avoid ambiguity as illustrated in the following 1 byte
+ char data (since this is not a string, embedded NUL is possible).
+ <pre>
+ 141 142 143 000 060 061 062 012
+ a b c \0 0 1 2 \n </pre>
+ h5dump prints them as "abc\000012\n". But if h5dump prints NUL as \0,
+ the output is "abc\0012\n" which is ambiguous.
+ </p>
<!-- NEW PAGE -->
<dt><strong>XML Output:</strong>
@@ -2520,7 +2534,7 @@ of complete manual formatted as print volume)&nbsp;&nbsp;&nbsp;</small></i>
Describes HDF5 Release 1.6.3, September 2004
</address><!-- #EndLibraryItem --><SCRIPT LANGUAGE="JAVASCRIPT">
<!--
-document.writeln("Last modified: 19 January 2004");
+document.writeln("Last modified: 24 November 2004");
-->
</SCRIPT>