Function chdir

Top 

Declaration:

int chdir(char path[]);

Description

Sets up the new default directory specified in parameter path. The latter might also contain a disk name, but the disk does not change: only the default directory changes on this disk.

Returned value

If the directory change is successful, 0 will be returned, and -1 otherwise.