/usr/man2/cat.3/getcwd.3.Z(/usr/man2/cat.3/getcwd.3.Z)
NAME
getcwd - return absolute path to current directory
SYNOPSIS
#include <ast.h>
char* getcwd(char* buf, size_t len);
DESCRIPTION
getcwd copies the absolute path name of the current directory info into
buf of length len. The return path may be longer than PATH_MAX. If
buff == 0 then space is allocated via malloc(3) and len extra charac-
ters are reserved after the generated path name. A pointer to the path
name is returned, 0 on error.
SEE ALSO
pathcd(3)
GETCWD(3)
Man(1) output converted with
man2html