NAME

_getcwd  (MSVCRT.@)

SYNOPSIS

 char* CDECL  _getcwd
 (
  char* buf,
  int   size
 )

DESCRIPTION

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

Declared in "include/msvcrt/direct.h". gitlab.winehq.org/wine/wine/blob/master/include/msvcrt/direct.h

Implemented in "dlls/msvcrt/dir.c". gitlab.winehq.org/wine/wine/blob/master/dlls/msvcrt/dir.c

Debug channel "msvcrt".


Copyright © 2024 The Wine Project. All trademarks are the property of their respective owners. Visit WineHQ for license details. Generated Nov 2024.