.th CHDIR IV 3/6/86
.sh NAME
chdir \*- change working directory
.sh SYNOPSIS
(chdir = 12.)
.br
.ft B
sys chdir; dirname
.s3
chdir(dirname)
.br
char *dirname;
.ft R
.sh DESCRIPTION
Dirname
is the address of the pathname of a directory, terminated by a null byte.
Chdir
causes this directory
to become the current working directory.
.sh "SEE ALSO"
chdir (I)
.sh DIAGNOSTICS
The error bit (c-bit)
is set if the given name is not that of a directory
or is not readable.
From C, a \*-1 returned value indicates an error,
0 indicates success.
.sh KSOS
