_getcwd(3w)

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

Defined in "tchar.h".

Implemented in "build/buildd-wine-unstable_1.1.32-1+b1-amd64-KnxYu0/wine-unstable-1.1.32/build32/dlls/msvcrt/dir.c".

Debug channel "msvcrt".
Copyright © 2010-2025 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout