CHDIR(2) System Calls Manual CHDIR(2)

chdirchange current working directory

int
chdir(const char *path);

() changes the current working directory of the calling process to the directory specified in path.

chdir() return zero on success. On error, -1 is returned.

23 Germinal CCXXXII QDNix