Synopsis

#include <unistd.h>

int chdir(const char *path);

Description

chdir changes the working directory of the current process to the one specified in path.

Return value

Returns EOK upon successful completion, otherwise the value -1 is returned.

Errors