2 #include <msvcrt/ctype.h>
3 #include <msvcrt/direct.h>
6 int _chdir( const char *_path )
9 _chdrive(tolower(_path[0] - 'a')+1);
10 if ( !SetCurrentDirectoryA((char *)_path) )
16 int _wchdir( const wchar_t *_path )
18 if ( _path[1] == L':')
19 _chdrive(towlower(_path[0] - L'a')+1);
20 if ( !SetCurrentDirectoryW((wchar_t *)_path) )