Copyright (C) 2000-2012 |
Manpages Tcl_GetCwdSection: Tcl Library Procedures (3)Updated: 8.1 Index Return to Main Contents NAMETcl_GetCwd, Tcl_Chdir - manipulate the current working directorySYNOPSIS#include <tcl.h> char * Tcl_GetCwd(interp, bufferPtr) int Tcl_Chdir(path) ARGUMENTS
DESCRIPTIONThese procedures may be used to manipulate the current working directory for the application. They provide C-level access to the same functionality as the Tcl pwd command. Tcl_GetCwd returns a pointer to a string specifying the current directory, 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 caller must call Tcl_DStringFree() when the result is no longer needed. The format of the path is UTF-8. Tcl_Chdir changes the applications current working directory to the value specified in path. The format of the passed in string must be UTF-8. The function returns -1 on error or 0 on success. KEYWORDSpwd
IndexThis document was created by man2html, using the manual pages. Time: 13:04:39 GMT, May 04, 2024 |