Utility Functions and C Language Reference > C Language Reference > Alphabetical List of Functions > chdir

chdir

Example: chdir File Manipulation Functions

Changes the current directory to the given path. (Windows only)

int chdir( const char *path);

path The target path.

For chdir details, refer to your C language documentation.

Return Values

This function returns zero upon success and (-1) for failure.