Artifact ce5c55f991d147058ade87f6e211bf9a69f7250431c333e134cc2716136484ed:
- File doc/markdown/Concat3.md — part of check-in [5e80e55e41] at 2026-09-26 22:40:07 on branch tip-700 — - added a "title" metadata element to the generated yaml block to satisfy Pandoc when converting to HTML - added markdown2html.tcl as prototype/placeholder of conversion script markdown -> HTML - added some CSS to play with a good visual representation of the generated HTML, starting with the n section pages - fixed man2markdown.tcl not giving the two .TP/.IP parsing places the same treatment (user: Torsten, size: 1774) [annotate] [blame] [check-ins using]
- File doc/markdown/TclCAPI/Concat.md — part of check-in [53d963650f] at 2026-10-05 21:52:35 on branch tip-700 — - file location re-organisation (part 2 of 2) - added manual pages from Tcl 9.1: divmod, frexp, lfilter, modf, remquo, timer; incl. final conversions - unified timer.n - moved 'package prefer' into the alphabetical order of the other subcommands (user: Torsten, size: 1774) [annotate] [blame] [check-ins using]
- File doc/markdown/TclCAPI/Concat3.md — part of check-in [b84ce0eee1] at 2026-10-04 22:10:02 on branch tip-700 — file location re-organisation (part 1) (user: Torsten, size: 1774) [annotate] [blame] [check-ins using]
CommandName: Tcl_Concat title: Tcl_Concat ManualSection: 3 Version: 7.5 TclPart: Tcl TclDescription: Tcl Library Procedures Links:
- Tcl_ConcatObj Keywords:
- concatenate
- strings Copyright:
- Copyright (c) 1989-1993 The Regents of the University of California.
- Copyright (c) 1994-1996 Sun Microsystems, Inc. ---
Name
Tcl_Concat - concatenate a collection of strings
Synopsis
::: {.synopsis} ::: #include <tcl.h> [const char *]{.ret} [Tcl_Concat]{.ccmd} [argc, argv]{.cargs} :::
Arguments
::: {.arguments} :::
[argc]{.carg .in type="Tcl_Size"} : Number of strings.
[*argv]{.carg .in type="const char const"} : Array of strings to concatenate. Must have *argc entries.
:::
Description
Tcl_Concat is a utility procedure used by several of the Tcl commands. Given a collection of strings, it concatenates them together into a single string, with the original strings separated by spaces. This procedure behaves differently than Tcl_Merge, in that the arguments are simply concatenated: no effort is made to ensure proper list structure. However, in most common usage the arguments will all be proper lists themselves; if this is true, then the result will also have proper list structure.
Tcl_Concat eliminates leading and trailing white space as it copies strings from argv to the result. If an element of argv consists of nothing but white space, then that string is ignored entirely. This white-space removal was added to make the output of the concat command cleaner-looking.
The result string is dynamically allocated using Tcl_Alloc; the caller must eventually release the space by calling Tcl_Free.