int chdir(const char *pathname);
Search permission is denied for a component of the path name.
pathname points outside the allocated address space of the process.
A signal interrupted the call.
An I/O error occurred while reading from or writing to the file system.
The pathname parameter exceeds PATH_MAX in length or a pathname component is longer than NAME_MAX while _POSIX_NO_TRUNC is in effect.
The named directory does not exist or pathname is an empty string.
A component of the pathname is not a directory.
POSIX.1 (1996), with exceptions.
Windows supports multiple root directories, one for each drive, and
also maintains a current working directory on each drive.
File names are treated as multibyte sequences and are converted to Unicode (UTF-16)
before passing to Win32. The conversion is either performed based on the
current thread locale, set using
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.3 Documentation Build 39.