git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
19a4a9fecfc8b44e96cda92fa7318f74d4c23324
[reactos.git]
/
lib
/
crtdll
/
direct
/
chdir.c
1
#include <windows.h>
2
#include <crtdll/direct.h>
3
#include <crtdll/ctype.h>
4
5
6
7
int _chdir( const char *_path )
8
{
9
if ( _path[1] == ':')
10
_chdrive(tolower(_path[0] - 'a')+1);
11
if ( !SetCurrentDirectoryA((char *)_path) )
12
return -1;
13
14
return 0;
15
}
16
17
18