git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[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