Declaration: 
int getcurdir(int drive, char directory[]); 
Description 
Writes the name of the current directory for the device specified in parameter drive (0 - current disk; 1 - A; 2 - B; ...) to parameter directory. 
The received name does not contain the disk name and does not start with symbol \. 
Returned value 
0 will be returned, if the name is received successfully, and -1 otherwise 
 |