#include <unistd.h>
int chdir(const char *new_directory);
Description
This function changes the current directory to new_directory.
If a drive letter is specified, the current directory for that drive
is changed and the current disk is set to that drive, else the current
directory for the current drive is changed.
Return Value
Zero if the new directory exists, else nonzero and errno set if error.
Please take a moment to fill out
this visitor survey You can help support this site by
visiting the advertisers that sponsor it! (only once each, though)