Change current working directory.
Syntax
#include <unistd.h>
int chdir (const char *path);
Parameters
-
path
The directory to change to.
Return Value
The return value is null if successful. Otherwise, the return value is negative and errno is set:
-
ENOENT
The directory does not exist.
-
ENOTDIR
Not a directory.
-
ENOMEM
Out of memory.
Remarks
None