GLib.chdir (original) (raw)
Function
GLibchdir
since: 2.8
Declaration [src]
int
g_chdir (
const gchar* path
)
Description [src]
A wrapper for the POSIX chdir()
function. The function changes the current directory of the process to path
.
See your C library manual for more details about chdir().
Available since: 2.8
Parameters
path
Type: const gchar*
A pathname in the GLib file name encoding (UTF-8 on Windows).
The data is owned by the caller of the function. |
---|
The value is a platform-native string, using the preferred OS encoding on Unix and UTF-8 on Windows. |
Return value
Type: int
0 on success, -1 if an error occurred.