File and Path Function
int chdir(const char *dirname);
int _chdir(const char *dirname);
int _wchdir(const wchar_t *dirname);
int _tchdir(const TCHAR *dirname);
Internationalization (I18n) Function Overview
The chdir and _chdir functions are used to set the process' working
directory to dirname . If successful, 0 is returned; otherwise,
-1 is returned and the global errno variable is set to ENOENT
to indicate that the specified path could not be found.
On Windows platforms, _wchdir is the wide-character version of _chdir ; its argument is a wide-character string. There is no ANSI wide-character equivalent.
_tchdir is the Windows-only Generic version of the function; with the _MBCS or _UNICODE compiler flags determining its mapping to either _chdir or _wchdir .
I18n Issues
Use the appropriate version of the function as required for internationalization support.
On ANSI UTF-16 platforms, use a conversion function to convert the
wide-character string to a multibyte-character string and then call chdir .
See Pathnames for a discussion of path and filename considerations in
an internationalized application.
Recommended Replacements*
*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.
File and Path Functions
|