update for HEAD-2003091401
[reactos.git] / lib / crtdll / stdio / rename.c
1 #include <windows.h>
2 #include <msvcrt/stdio.h>
3 #include <msvcrt/io.h> 
4
5
6 /*
7  * @implemented
8  */
9 int rename(const char *old_, const char *new_)
10 {
11         if ( old_ == NULL || new_ == NULL )
12                 return -1;
13
14         if ( !MoveFileA(old_,new_) )
15                 return -1;
16
17         return 0;
18 }