SYNOPSIS
#include <tcl.h>
char * Tcl_TranslateFileName(interp, name, bufferPtr)
ARGUMENTS
- Tcl_Interp *interp (in)
-
Interpreter in which to report an error, if any.
- char *name (in)
-
File name, which may start with a ~.
- Tcl_DString *bufferPtr (in/out)
-
If needed, this dynamic string is used to store the new file name. At the time of the call it should be uninitialized or free. The caller must eventually call
Tcl_DStringFree() to free up anything stored here.
DESCRIPTION
This utility procedure translates a file name to a form suitable for passing to the local operating system. It converts network names into native form and does tilde substitution.
If
If an error occurs (for example, because there was no user by the given
name) then NULL is returned and an error message will be left
in the interpreter's result.
When an error occurs,
The caller is responsible for making sure that the interpreter's result
has its default empty value when
PORTABILITY
Windows 2000. Windows XP. Windows Server 2003. Windows Vista. Windows 7. Windows Server 2008.
AVAILABILITY
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Commands:
- filename
MKS Toolkit 9.3 Documentation Build 6.