GETWD(3) RISC/os Reference Manual GETWD(3)
NAME
getwd - get current working directory pathname
SYNOPSIS
For -systype sysv and -systype bsd43:
char *getwd(pathname)
char *pathname;
DESCRIPTION
getwd copies the absolute pathname of the current working
directory to pathname and returns a pointer to the result.
LIMITATIONS
Maximum pathname length is MAXPATHLEN characters (1024), as
defined in <sys/param.h>.
DIAGNOSTICS
getwd returns zero and places a message in pathname if an
error occurs.
ORIGINS
BSD4.3
NOTE
When these routines are used in a program which is compiled
in -systype sysv, they are not resolved by libc.a. See
intro(3-SysV) for more information.
Printed 1/15/91 Page 1