summaryrefslogtreecommitdiffstats
path: root/doc/binary.n
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-11-16 10:53:58 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-11-16 10:53:58 (GMT)
commita3a070b13cb5312958d8193be0e406362776a528 (patch)
tree22ad3b847ba97bce3f54cbd223fcc8354a855510 /doc/binary.n
parentdac1c2f4f24933af8d0514068a93e9808f74f886 (diff)
parentd9737c5991ba61c51f807ee3a63dd19d59ca9b9f (diff)
downloadtcl-a3a070b13cb5312958d8193be0e406362776a528.zip
tcl-a3a070b13cb5312958d8193be0e406362776a528.tar.gz
tcl-a3a070b13cb5312958d8193be0e406362776a528.tar.bz2
TIP #586 implementation: C String Parsing Support for binary scan
Diffstat (limited to 'doc/binary.n')
-rw-r--r--doc/binary.n9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/binary.n b/doc/binary.n
index 0e8b28e..9b8b106 100644
--- a/doc/binary.n
+++ b/doc/binary.n
@@ -762,6 +762,15 @@ high-to-low order within each byte. For example,
will return \fB2\fR with \fB01110\fR stored in \fIvar1\fR and
\fB1000011100000101\fR stored in \fIvar2\fR.
.RE
+.IP \fBC\fR 5
+This form is similar to \fBA\fR, except that it scans the data from start
+and terminates at the first null (C string semantics). For example,
+.RS
+.CS
+\fBbinary scan\fR "abc\e000efghi" C* var1
+.CE
+will return \fB1\fR with \fBabc\fR stored in \fIvar1\fR.
+.RE
.IP \fBH\fR 5
The data is turned into a string of \fIcount\fR hexadecimal digits in
high-to-low order represented as a sequence of characters in the set