C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
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
─────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
                                    -♦-