See Don's answer to my post. The function I used is printf, which on an
UNIXoid is typically in /usr/bin/printf (these days, at least). And this
one is definitely inspired in C's printf (which is itself inspired in...
but I disgress [1]).
As it turns out, it just worked by chance. The proc to use in Tcl is
[format] [2], which is itself inspired in... C's printf.
So yes, in some sense it helps knowing C's printf. But [2] helps too,
and is self-contained.
[1] <
https://en.wikipedia.org/wiki/Printf>
[2] <
https://www.tcl.tk/man/tcl8.4/TclCmd/format.htm>