getwd(3C) manual page
Table of Contents
getwd - get current working directory pathname
#include
<sys/param.h>
#include <unistd.h>
char *getwd(char *pathname);
getwd() copies
the absolute pathname of the current working directory to pathname and
returns a pointer to the result.
getwd() returns zero and places
a message in pathname if an error occurs. pathname points to a character
array of at least MAXPATHLEN
length.
getcwd(3C)
Table of Contents