summaryrefslogtreecommitdiffstats
path: root/doc/scan.n
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2006-06-14 14:59:03 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2006-06-14 14:59:03 (GMT)
commitd60e3a9af6b198b47b40a9036dee34f474d23fec (patch)
tree08730c37fa3dfec3902c710d269e289a2e7d5753 /doc/scan.n
parent8aa008feecf66fb147b65f564af0dc679facb58a (diff)
downloadtcl-d60e3a9af6b198b47b40a9036dee34f474d23fec.zip
tcl-d60e3a9af6b198b47b40a9036dee34f474d23fec.tar.gz
tcl-d60e3a9af6b198b47b40a9036dee34f474d23fec.tar.bz2
Added examples after prompting on the Tcler's chat.
Diffstat (limited to 'doc/scan.n')
-rw-r--r--doc/scan.n8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/scan.n b/doc/scan.n
index 8dc72c9..295bd38 100644
--- a/doc/scan.n
+++ b/doc/scan.n
@@ -6,7 +6,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: scan.n,v 1.17 2006/04/26 04:41:10 dgp Exp $
+'\" RCS: @(#) $Id: scan.n,v 1.18 2006/06/14 14:59:03 dkf Exp $
'\"
.so man.macros
.TH scan n 8.4 Tcl "Tcl Built-In Commands"
@@ -194,6 +194,12 @@ modifier has no \fBsscanf\fR counterpart.
If the end of the input string is reached before any conversions have been
performed and no variables are given, an empty string is returned.
.SH EXAMPLES
+Convert a UNICODE character to its numeric value:
+.CS
+set char "x"
+set value [\fBscan\fR $char %c]
+.CE
+.PP
Parse a simple color specification of the form \fI#RRGGBB\fR using
hexadecimal conversions with substring sizes:
.CS