[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    getwd(3C) manual page Table of Contents

Name

getwd - get current working directory pathname

Synopsis

#include <sys/param.h>
#include <unistd.h>

char *getwd(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

getcwd(3C)


Table of Contents