Gets current directory path name.
char *getwd ( PathName)
char *PathName;
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 PATH_MAX value, as specified in the limits.h file.
PathName | Points to the full path name. |
If the call to the getwd subroutine is successful, a pointer to the absolute path name of the current directory is returned. If an error occurs, the getwd subroutine returns a null value and places an error message in the PathName parameter.
This subroutine is part of Base Operating System (BOS) Runtime.
The getcwd (getcwd Subroutine) subroutine.
Files, Directories, and File Systems for Programmers in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.