diff --git a/doc/formats.html b/doc/formats.html
index 2bb3a67..6e6adb8 100644
--- a/doc/formats.html
+++ b/doc/formats.html
@@ -240,6 +240,8 @@ The %b
format uses the characters 0
and
1
.
With the %B
format, you can choose two other characters
to represent zero and one.
+With the #
flag, the bit order is changed to little
+endian, i.e. least significant bit first.
Examples: %B.!
or %B\x00\xff
.
@@ -264,23 +266,28 @@ one character.
%r
)
The raw converter does not really "convert".
-A signed integer value is written or read in the internal
+A signed or unsigned integer value is written or read in the internal
(usually two's complement) representation of the computer.
The normal byte order is big endian, i.e. most significant byte
first.
With the #
flag, the byte order is changed to little
endian, i.e. least significant byte first.
+With the 0
flag, the value is unsigned, otherwise signed.
In output, the width least significant bytes of the value
are written.
If width is larger than the size of a long
,
-the value is sign extended.
+the value is sign extended or zero extended, depending on the
+0
flag.
In input, width bytes are read and put into the value.
-If width is longer than the size of a long
, only
+If width is larger than the size of a long
, only
the least significant bytes are used.
+If width is smaller than the size of a long
,
+the value is sign extended or zero extended, depending on the
+0
flag.
<title>
tag and leaves anything after the
</title>
tag in the input buffer.
+
+%m
)
+This experimental input-only format matches numbers in the format
+[sign] mantissa sign exponent, e.g +123-4
meaning
+123e-4 or 0.0123. Mantissa and exponent are integers. The sign of the
+mantissa is optional. Compared to the standard %e
format,
+this format does not contain the characters .
and e
.
+
+Output formatting is ambigous (e.g. 123-4
versus
+1230-5
). Until it has been specified how to handle this,
+output is not supported.
+
Dirk Zimoch, 2007
diff --git a/doc/nav.html b/doc/nav.html index d756766..14801f9 100644 --- a/doc/nav.html +++ b/doc/nav.html @@ -121,6 +121,7 @@ h1 {font-size:120%;