GETWROOT(3C) COMMAND REFERENCE GETWROOT(3C)
NAME
getwd - get current working root directory pathname
SYNOPSIS
#include <sys/max.h>
char *getwroot(pathname, printlocal)
char *pathname;
int printlocal;
DESCRIPTION
Getwroot places the full name of the root directory of the
current working directory in pathname. If the current
working directory is on the remote machine host, the name
will be //host.
If print_local is 0 and the current working directory is on
the local host, the name will be a slash (/). If
print_local is nonzero, the name will always contain the
local hostname.
Pathname should be a pointer to at least MAXHOSTNAMESIZE + 3
characters. MAXHOSTNAMESIZE is defined in
/usr/include/sys/max.h.
DIAGNOSTICS
Getwroot returns -1 on error, and places a message in
pathname if an error occurs.
SEE ALSO
getwd(3c).
Printed 10/17/86 1
%%index%%
na:72,87;
sy:159,669;
de:828,804;
di:1632,236;
se:1868,102;
%%index%%000000000093