Functions HI-TECH C GETCWD
GETCWD (MS-DOS only)
#include <sys.h> char * getcwd(int drive)
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().