diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2006-06-14 14:59:03 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2006-06-14 14:59:03 (GMT) |
commit | d60e3a9af6b198b47b40a9036dee34f474d23fec (patch) | |
tree | 08730c37fa3dfec3902c710d269e289a2e7d5753 /doc/scan.n | |
parent | 8aa008feecf66fb147b65f564af0dc679facb58a (diff) | |
download | tcl-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.n | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |