◄Description► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back► ─────Run-Time Library─────────────────────────────────────────────────────── Include: <direct.h>, <errno.h> Syntax: char *_getcwd( char *buffer, int maxlen ); char *_getdcwd( int drive, char *buffer, int maxlen ); Returns: a pointer to <buffer> if successful, or NULL if not. errno: ENOMEM, ERANGE See also: _chdir, _getdrive, _mkdir, _rmdir, _makepath, _fullpath -♦-