getcwd - get pathname of current working directory
integer function getcwd (dirname)
The pathname of the default directory for creating and locating files
will be returned in dirname. The value of the function will be zero if
successful; an error code otherwise.
Pathnames can be no longer than MAXPATHLEN as defined in <sys/param.h>.
4th Berkeley Distribution 18 July 1983 GETCWD(3F)