getcwd -- Determine Working Directory Pathname


SYNOPSIS
#include <unistd.h>
char *getcwd(char *buffer, int size);
DESCRIPTION
getcwd
finds the pathname of the working OpenEdition directory.
buffer
is the buffer in which this information is stored. The
size of buffer
must be large enough to hold the pathname and a
terminating null. size
is the number of characters in the
buffer area.
RETURN VALUE
getcwd
returns a pointer to the buffer if successful and
a NULL pointer if not successful.
IMPLEMENTATION
When getcwd
is called in a program that is not compiled under
POSIX, the
returned directory name includes an "hfs:"
style prefix.
EXAMPLE
See the example for chdir
.
RELATED FUNCTIONS
chdir
SEE ALSO