aboutsummaryrefslogtreecommitdiff
path: root/unix/os/doc/zfgcwd.hlp
blob: 11fb57356485505d71f360fb25610c6d2eef8917 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.help zfgcwd May84 "System Interface"
.ih
NAME
zfgcwd -- get current working directory
.ih
SYNOPSIS
.nf
zfgcwd (pathname, maxch, status)

packed	char pathname[maxch]		# receives pathname of cwd
int	maxch, status
.fi
.ih
DESCRIPTION
The pathname of the current working directory is returned as a packed string,
suitable for concatenation with a filename to produce the pathname of the file.
.ih
RETURN VALUE
ERR is returned if the output string overflows or if the name of the current
working directory cannot be obtained for some reason.  If the operation is
successful the number of characters in the output string is returned,
excluding the EOS delimiter.
.ih
SEE ALSO
zfxdir, zfsubd, zfpath
.endhelp