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

📄 getcwd.3

📁 tcl是工具命令语言
💻 3
字号:
'\"'\" Copyright (c) 1998-1999 Scriptics Corporation'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" RCS: @(#) $Id: GetCwd.3,v 1.5 2002/02/08 02:52:54 dgp Exp $'\" .so man.macros.TH Tcl_GetCwd 3 8.1 Tcl "Tcl Library Procedures".BS.SH NAMETcl_GetCwd, Tcl_Chdir \- manipulate the current working directory.SH SYNOPSIS.nf\fB#include <tcl.h>\fR.spchar *\fBTcl_GetCwd\fR(\fIinterp\fR, \fIbufferPtr\fR).spint\fBTcl_Chdir\fR(\fIpath\fR).SH ARGUMENTS.AS Tcl_DString *bufferPtr.AP Tcl_Interp *interp inInterpreter in which to report an error, if any..AP Tcl_DString *bufferPtr in/outThis dynamic string is used to store the current working directory.At the time of the call it should be uninitialized or free.  Thecaller must eventually call \fBTcl_DStringFree\fR to free upanything stored here..AP char *path inFile path in UTF\-8 format..BE.SH DESCRIPTION.PPThese procedures may be used to manipulate the current workingdirectory for the application.  They provide C\-level access tothe same functionality as the Tcl \fBpwd\fR command..PP\fBTcl_GetCwd\fR returns a pointer to a string specifying the currentdirectory, or NULL if the current directory could not be determined.If NULL is returned, an error message is left in the interp's result.Storage for the result string is allocated in bufferPtr; the callermust call \fBTcl_DStringFree()\fR when the result is no longer needed.The format of the path is UTF\-8..PP\fBTcl_Chdir\fR changes the applications current working directory tothe value specified in \fIpath\fR.  The format of the passed in stringmust be UTF\-8.  The function returns -1 on error or 0 on success..SH KEYWORDSpwd

⌨️ 快捷键说明

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