getwd(3B)
NAME
getwd − get current working directory pathname
SYNOPSIS
/usr/ucb/cc [ flag ... ] file ...
#include <sys/param.h>
char ∗getwd( pathname)
char ∗pathname;
DESCRIPTION
getwd() copies the absolute pathname of the current working directory to pathname and returns a pointer to the result.
RETURN VALUES
getwd() returns zero and places a message in pathname if an error occurs. pathname points to a character array of at least MAXPATHLEN length.
SEE ALSO
NOTES
Use of these interfaces should be restricted to only applications written on BSD platforms. Use of these interfaces with any of the system libraries or in multi-thread applications is unsupported.
SunOS 5.2 — Last change: 12 Feb 1993