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