reactos/reactos/lib/crtdll/direct/chdir.c
Boudewijn Dekker ed08466464 Added various files.
--> failed to pass test printing a simple string

svn path=/trunk/; revision=380
1999-04-14 21:27:02 +00:00

18 lines
247 B
C

#include <windows.h>
#include <crtdll/direct.h>
#include <crtdll/ctype.h>
int _chdir( const char *_path )
{
if ( _path[1] == ':')
_chdrive(tolower(_path[0] - 'a')+1);
if ( !SetCurrentDirectory((char *)_path) )
return -1;
return 0;
}