Manual Page Result
0
Command: getwd | Section: 3 | Source: UNIX v10 | File: getwd.3
GETWD(3) Library Functions Manual GETWD(3)
NAME
getwd, getcwd - get current directory
SYNOPSIS
char *getwd(buf)
char *buf;
char *getcwd(buf, size)
char *buf;
DESCRIPTION
Getwd and getcwd fill buf with a null-terminated string representing
the current directory and return buf.
Getwd is in the style of BSD systems and getcwd in that of System V.
If buf is 0, getcwd will call malloc(3) to allocate size bytes for the
buffer.
SEE ALSO
pwd(1)
DIAGNOSTICS
On error, zero is returned and buf is filled with a diagnostic message.
GETWD(3)