Commit | Line | Data |
---|---|---|
05dda90f C |
1 | .TH GETWD 3 "25 February 1983" |
2 | .UC 4 | |
3 | .SH NAME | |
4 | getwd \- 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 | |
12 | copies the absolute pathname of the current working directory to | |
13 | .I pathname | |
14 | and returns a pointer to the result. | |
15 | .SH LIMITATIONS | |
16 | Maximum pathname length is MAXPATHLEN characters (1024). | |
17 | .SH DIAGNOSTICS | |
18 | .I Getwd | |
19 | returns zero and places a message in | |
20 | .I pathname | |
21 | if an error occurs. | |
22 | .SH BUGS | |
23 | .I Getwd | |
24 | may fail to return to the current directory if an error occurs. |