reactos/reactos/lib/crt/direct/chdir.c
Gunnar Dalsnes b6a8b98ef0 build msvcrt and crtdll from same source via lib\crt
fix problem with scanf/printf reading/printing doubles

svn path=/trunk/; revision=13342
2005-01-27 21:18:04 +00:00

16 lines
276 B
C

#include "precomp.h"
#include <msvcrt/ctype.h>
#include <msvcrt/direct.h>
#include <msvcrt/internal/file.h>
/*
* @implemented
*/
int _chdir(const char* _path)
{
if (!SetCurrentDirectoryA((char*)_path)) {
_dosmaperr(GetLastError());
return -1;
}
return 0;
}