Manual Pages for UNIX Darwin command on man Tcl_Concat
MyWebUniversity

Manual Pages for UNIX Darwin command on man Tcl_Concat

TclConcat(3) Tcl Library Procedures TclConcat(3)

NAME

TclConcat - concatenate a collection of strings

SYNOPSIS

##iinncclluuddee <>

CONST char * TTccllCCoonnccaatt(argc, argv) AARRGGUUMMEENNTTSS int argc (in) Number of strings. CONST char * CONST argv[](in)

Array of strings to concate-

nate. Must have argc entries.

DESCRIPTION

TTccllCCoonnccaatt 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 TTccllMMeerrggee, 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. TTccllCCoonnccaatt eliminates leading and trailing white space as it copies strings from aarrggvv to the result. If an element of aarrggvv consists of nothing but white space, then that string is ignored entirely. This

white-space removal was added to make the output of the ccoonnccaatt command

cleaner-looking.

The result string is dynamically allocated using TTccllAAlllloocc; the caller | must eventually release the space by calling TTccllFFrreeee. |

SEE ALSO

TclConcatObj | KKEEYYWWOORRDDSS | concatenate, strings | Tcl 7.5 TclConcat(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™