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.
5 .\" @(#)getwd.3 6.2 (Berkeley) 5/12/86
7 .TH GETCWD 3 "May 12, 1986"
10 getcwd \- get current working directory pathname
16 char *getcwd(char *\fIpathname\fP, size_t \fIlen\fP)
20 copies the absolute pathname of the current working directory to
22 and returns a pointer to the result.
24 is a character array of length
28 returns a null pointer and sets
30 if an error occurs. The error will reflect the system call errors that
31 may occur if the path to the current directory is searched upwards to
32 the root directory. The error
34 is returned if the result does not fit within