xref: /original-bsd/share/man/man3f/getcwd.3 (revision 6b005e0a)
Copyright (c) 1983, 1993
The Regents of the University of California. All rights reserved.

%sccs.include.proprietary.roff%

@(#)getcwd.3 8.1 (Berkeley) 06/05/93

GETCWD 3F ""
C 5
NAME
getcwd - get pathname of current working directory
SYNOPSIS
integer function getcwd (dirname)

character*(*) dirname

DESCRIPTION
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.
FILES
"SEE ALSO"
chdir(3F), perror(3F)
BUGS
Pathnames can be no longer than MAXPATHLEN as defined in < sys/param.h >.