GETWD(3,L) AIX Technical Reference GETWD(3,L) ------------------------------------------------------------------------------- getwd PURPOSE Gets current directory path name. LIBRARY Standard C Library (libc.a) SYNTAX char *getwd (pathname) char *pathname; DESCRIPTION The getwd subroutine determines the absolute path name of the current directory, then copies that path name into the area pointed to by the pathname parameter. The maximum path name length, in characters, is set by the MAXPATHLEN define directive in the file /usr/include/sys/param.h. RETURN VALUE If the call to getwd is successful, a pointer to the absolute path name of the current directory is returned. If an error occurs, getwd returns the value 0 and places a message in pathname. RELATED INFORMATION In this book: "getcwd." Processed November 7, 1990 GETWD(3,L) 1