_getdcwd(3w)

_getdcwd3w

Usage

char* CDECL _getdcwd
(
int drive,
char* buf,
int size
)

Overview

Get the current working directory on a given disk.

Params

drive [In] Drive letter to get the current working directory from.

buf [Out] Destination for the current working directory.

size [In] Length of drive in characters.

Returns

Success: If drive is NULL, returns an allocated string containing the path. Otherwise populates drive with the path and returns it.

Failure: NULL. errno indicates the error.

Implementation

Not defined in a Wine header. The function is either undocumented, or missing from Wine.

Implemented in "dlls/msvcrt/dir.c".

Debug channel "msvcrt".

Releases

3 releases since Debian 4.0 (Etch); the text changed 2 times.

  1. 4.0
  2. 5.0
  3. 6.0

From libwine-dev 1.0.1-3.1 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.