GETWD(3C) COMMAND REFERENCE GETWD(3C)
NAME
getwd - get current working directory pathname
SYNOPSIS
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.
If the current working directory is on another host, the
current working hostname is prepended to the name preceded
by two slashes (//). For example, if the local host is home
and the current working directory is /bin on the machine
remote, the current working directory is //remote/bin.
DIAGNOSTICS
Getwd returns 0 and places a message in pathname if an error
occurs.
CAVEATS
Getwd may fail to return to the current directory if an
error occurs.
Maximum pathname length is MAXPATHLEN characters.
SEE ALSO
pwd(1), pwd(1sh), getwroot(3c).
Printed 10/17/86 1
%%index%%
na:72,82;
sy:154,310;
de:464,623;
di:1087,204;
ca:1291,217;
se:1508,151;
%%index%%000000000106