BSD 4_2 development
[unix-history] / usr / man / man3 / getwd.3
CommitLineData
05dda90f
C
1.TH GETWD 3 "25 February 1983"
2.UC 4
3.SH NAME
4getwd \- get current working directory pathname
5.SH SYNOPSIS
6.nf
7.B char *getwd(pathname)
8.B char *pathname;
9.fi
10.SH DESCRIPTION
11.I Getwd
12copies the absolute pathname of the current working directory to
13.I pathname
14and returns a pointer to the result.
15.SH LIMITATIONS
16Maximum pathname length is MAXPATHLEN characters (1024).
17.SH DIAGNOSTICS
18.I Getwd
19returns zero and places a message in
20.I pathname
21if an error occurs.
22.SH BUGS
23.I Getwd
24may fail to return to the current directory if an error occurs.