Commit | Line | Data |
---|---|---|
861bcf00 KM |
1 | .\" Copyright (c) 1983 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
1ff03aa2 | 5 | .\" @(#)getcwd.3 6.2 (Berkeley) %G% |
861bcf00 | 6 | .\" |
9594a5eb | 7 | .TH GETWD 3 "" |
861bcf00 KM |
8 | .UC 5 |
9 | .SH NAME | |
10 | getwd \- get current working directory pathname | |
11 | .SH SYNOPSIS | |
12 | .nf | |
13 | .B char *getwd(pathname) | |
14 | .B char *pathname; | |
15 | .fi | |
16 | .SH DESCRIPTION | |
17 | .I Getwd | |
18 | copies the absolute pathname of the current working directory to | |
19 | .I pathname | |
20 | and returns a pointer to the result. | |
21 | .SH LIMITATIONS | |
9594a5eb KM |
22 | Maximum pathname length is MAXPATHLEN characters (1024), |
23 | as defined in | |
24 | .I <sys/param.h>. | |
861bcf00 KM |
25 | .SH DIAGNOSTICS |
26 | .I Getwd | |
27 | returns zero and places a message in | |
28 | .I pathname | |
29 | if an error occurs. |