[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
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.
See Also:
free()
getcwd()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson