Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
getcwd, _getdcwd
◄Description► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
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
-♦-