getcurdir
raw OCR
Gets current directory for specified drive.
Defined in header <dir.h>
Syntax
#include <dir.h>
int getcurdir(int drive, char *directory);
Portability
| DOS | UNIX | Windows | ANSI C | C++ only |
|---|---|---|---|---|
| ■ | ■ |
Remarks
getcurdir gets the name of the current working directory for the drive indicated by drive.
drive specifies a drive number (0 for default, 1 for A, and so on).
| directory points to an area of memory of length MAXDIR | where the null- |
terminated directory name will be placed. The name does not contain the drive specification and does not begin with a backslash.
Return value
getcurdir returns 0 on success or -1 in the event of error.
See also
Differences from modern implementations
Nothing recorded yet.
Modern references
These are search links, not yet checked by hand.
Stable link: /3.1/dir.h/getcurdir/
· short form /3.1/getcurdir/