Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Microsoft C 6.0 - <b>_getdcwd() get pathname of current directory including drive</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _getdcwd()              Get Pathname of Current Directory Including Drive

 #include   <direct.h>
 #include   <errno.h>

 char *_getdcwd(drive, buffer, maxlen);
 int drive;             Disk drive (A =1, B = 2...)
 char *buffer;          Buffer for path name
 int maxlen;            Maximum length of buffer

    The _getdcwd() function gets the full path name of the current
    working directory on drive drive (including drive letter) and
    stores it in buffer. The integer argument maxlen specifies
    the maximum allowable length for the path name.

    Returns:    A pointer to buffer if successful; NULL if not.

 Portability:   Not supported by the ANSI standard.


See Also: chdir() _getdrive() mkdir() rmdir()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson