.\" @(#)getcwd.3f 1.3 86/01/02 SMI; from UCB 4.2 .TH GETCWD 3F "07 July 1995" .SH NAME getcwd \- get the path name of the current working directory .SH SYNOPSIS .\" .IX getcwd "" \fLgetcwd\fP .IX "current working directory: get current working directory getcwd" "" "current working directory: get current working directory \&\fLgetcwd\fP" .IX get "current working directory getcwd" "" "current working directory: \&\fLgetcwd\fR" .IX directory "get current working directory getcwd" "" "get current working directory: \&\fLgetcwd\fR" .\" .B integer function getcwd (dirname) .br .B character*(*) dirname .SH DESCRIPTION The path name of the default directory for creating and locating files is returned in .br .IR dirname . The value of the function is zero if successful, an error code otherwise. .SH FILES .B libF77.a .SH "SEE ALSO" .BR chdir (3F), .BR perror (3F), .BR getwd (3) .SH BUGS Path names cannot be longer than .B MAXPATHLEN as defined in .BR .