GetDir

int GetDir (char currentDirectory[]);

Purpose

Gets the current working directory on the default drive.

Parameters

Output
Name Type Description
currentDirectory string The pathname of the current directory.

currentDirectory must be at least MAX_PATHNAME_LEN bytes long.

Return Value

Name Type Description
result integer The result of the call.
Code Description
0 Success.
-3 General I/O error occurred.
-4 Insufficient memory to complete operation.