-

Functions HI-TECH C GETCWD

From HI-TECH C for CP/M Fan WIKI(EN)
Revision as of 20:19, 31 July 2017 by Kumokosi (talk | contribs) (Created page with "<strong>GETCWD (MS-DOS only)</strong> ==SYNOPSIS== #include <sys.h> char * getcwd(int drive) ==DESCRIPTION== <strong>Getcwd</strong>() returns the path name of the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

GETCWD (MS-DOS only)

SYNOPSIS

#include  <sys.h>

char *    getcwd(int drive)


DESCRIPTION

Getcwd() returns the path name of the current working directory on the specified drive, where drive == 0 represents the current drive, drive == 1 represents A:, drive == 2 represents B: etc. The return value is a pointer to a static area of memory which will be overwritten on the next call to getcwd().

SEE ALSO

chdir