_getcwd3w
Usage
char* CDECL _getcwd
(
char* buf,
int size
)
Overview
Get the current working directory.
Params
buf [Out] Destination for current working directory.
size [In] Size of buf in characters.
Returns
Success: If buf is NULL, returns an allocated string containing the path. Otherwise populates buf with the path and returns it.
Failure: NULL. errno indicates the error.
Implementation
Defined in "tchar.h".
Implemented in "dlls/msvcrt/dir.c".
Debug channel "msvcrt".
Releases
3 releases since Debian 4.0 (Etch); the text changed 2 times.