getcurdir()              Get Current Directory
 
 #include   <dir.h>
 
 int        getcurdir(drive,direc);
 int        drive;                       Drive number
 char       *direc;                      Pointer to directory name
 
    getcurdir() gets the name of the current working directory for
    'drive'.  'drive' contains a drive number (0 = default, 1 = A, etc).
    'direc' points to an area of memory where the directory name will be
    placed.  The area is of length MAXDIR. The name is null-terminated
    and does not contain the drive specification; nor does it begin with
    a backslash.
 
    Returns:    0 on success, or -1 on error.

Seealso:



This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster