CHDIR(2)

NAME
chdir - change default directory

SYNOPSIS
chdir(dirname)
char *dirname;

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, the starting point for path names not beginning with `/'.

SEE ALSO
cd(1)

DIAGNOSTICS
Zero is returned if the directory is changed; -1 is returned if the given name is not that of a directory or is not searchable.

ASSEMBLER
(chdir = 12.)
sys chdir; dirname