⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 translate.3

📁 linux系统下的音频通信
💻 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: @(#) Translate.3 1.22 96/08/26 12:59:51'\" .so man.macros.TH Tcl_TranslateFileName 3 7.5 Tcl "Tcl Library Procedures".BS.SH NAMETcl_TranslateFileName \- convert file name to native form and replace tilde with home directory.SH SYNOPSIS.nf\fB#include <tcl.h>\fR.spchar *\fBTcl_TranslateFileName\fR(\fIinterp\fR, \fIname\fR, \fIbufferPtr\fR).SH ARGUMENTS.AS Tcl_DString *bufferPtr.AP Tcl_Interp *interp inInterpreter in which to report an error, if any..AP char *name inFile name, which may start with a ``~''..AP Tcl_DString *bufferPtr in/outIf needed, this dynamic string is used to store the new file name.At the time of the call it should be uninitialized or empty.  Thecaller must eventually call \fBTcl_DStringFree\fR to free upanything stored here..BE.SH DESCRIPTION.PPThis utility procedure translates a file name to a form suitable forpassing to the local operating system.  It converts network names intonative form and does tilde substitution..PPIf\fBTcl_TranslateFileName\fR has to do tilde substitution or translatethe name then it usesthe dynamic string at \fI*bufferPtr\fR to hold the new string itgenerates.After \fBTcl_TranslateFileName\fR returns a non-NULL result, the caller musteventually invoke \fBTcl_DStringFree\fR to free any informationplaced in \fI*bufferPtr\fR.  The caller need not know whether ornot \fBTcl_TranslateFileName\fR actually used the string;  \fBTcl_TranslateFileName\fRinitializes \fI*bufferPtr\fR even if it doesn't use it, so the call to\fBTcl_DStringFree\fR will be safe in either case..PPIf an error occurs (e.g. because there was no user by the givenname) then NULL is returned and an error message will be leftat \fIinterp->result\fR.When an error occurs, \fBTcl_TranslateFileName\fRfrees the dynamic string itself so that the caller need not call\fBTcl_DStringFree\fR..PPThe caller is responsible for making sure that \fIinterp->result\fRhas its default empty value when \fBTcl_TranslateFileName\fR is invoked..SH "SEE ALSO"filename.SH KEYWORDSfile name, home directory, tilde, translate, user

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -