📄 concat.3
字号:
'\"'\" Copyright (c) 1989-1993 The Regents of the University of California.'\" Copyright (c) 1994-1996 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" SCCS: @(#) Concat.3 1.12 97/06/11 17:54:12'\" .so man.macros.TH Tcl_Concat 3 7.5 Tcl "Tcl Library Procedures".BS.SH NAMETcl_Concat \- concatenate a collection of strings.SH SYNOPSIS.nf\fB#include <tcl.h>\fR.spchar *\fBTcl_Concat\fR(\fIargc, argv\fR).SH ARGUMENTS.AP int argc inNumber of strings..AP char *argv[] inArray of strings to concatenate. Must have \fIargc\fR entries..BE.SH DESCRIPTION.PP\fBTcl_Concat\fR is a utility procedure used by several of theTcl commands. Given a collection of strings, it concatenatesthem together into a single string, with the original stringsseparated by spaces. This procedure behaves differently than\fBTcl_Merge\fR, 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 properlists themselves; if this is true, then the result will also haveproper list structure..PP\fBTcl_Concat\fR eliminates leading and trailing white space as itcopies strings from \fBargv\fR to the result. If an element of\fBargv\fR consists of nothing but white space, then that stringis ignored entirely. This white-space removal was added to makethe output of the \fBconcat\fR command cleaner-looking..PP.VSThe result string is dynamically allocatedusing \fBTcl_Alloc\fR; the caller must eventually release the spaceby calling \fBTcl_Free\fR..VE.VS.SH "SEE ALSO"Tcl_ConcatObj.SH KEYWORDSconcatenate, strings
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -