1Tcl_Concat(3)               Tcl Library Procedures               Tcl_Concat(3)
2
3
4
5______________________________________________________________________________
6

NAME

8       Tcl_Concat - concatenate a collection of strings
9

SYNOPSIS

11       #include <tcl.h>
12
13       CONST char *
14       Tcl_Concat(argc, argv)
15

ARGUMENTS

17       int          argc               (in)      Number of strings.
18
19       CONST char * CONST              argv[](in)
20                                                 Array  of strings to concate‐
21                                                 nate.    Must    have    argc
22                                                 entries.
23_________________________________________________________________
24
25

DESCRIPTION

27       Tcl_Concat  is a utility procedure used by several of the Tcl commands.
28       Given a collection of strings, it concatenates  them  together  into  a
29       single  string,  with  the  original strings separated by spaces.  This
30       procedure behaves differently than Tcl_Merge, in that the arguments are
31       simply concatenated: no effort is made to ensure proper list structure.
32       However, in most common usage the arguments will all  be  proper  lists
33       themselves;   if  this  is  true, then the result will also have proper
34       list structure.
35
36       Tcl_Concat eliminates leading and trailing white  space  as  it  copies
37       strings  from  argv  to  the result.  If an element of argv consists of
38       nothing but white space, then that string is  ignored  entirely.   This
39       white-space  removal was added to make the output of the concat command
40       cleaner-looking.
41
42       The result string is dynamically allocated using Tcl_Alloc;  the caller │
43       must eventually release the space by calling Tcl_Free.                  │
44

SEE ALSO │

46       Tcl_ConcatObj                                                           │
47

KEYWORDS │

49       concatenate, strings                                                    │
50
51
52
53Tcl                                   7.5                        Tcl_Concat(3)
Impressum