.\" Copyright (c) 1983 Regents of the University of California.
.\" All rights reserved. The Berkeley software License Agreement
.\" specifies the terms and conditions for redistribution.
.\" @(#)getcwd.3 5.1 (Berkeley) %G%
.TH GETWD 3 "25 February 1983"
getwd \- get current working directory pathname
copies the absolute pathname of the current working directory to
and returns a pointer to the result.
Maximum pathname length is MAXPATHLEN characters (1024).
returns zero and places a message in
may fail to return to the current directory if an error occurs.