f580216584abb255ec38871e23f679ebdadd4896
[reactos.git] / lib / msvcrt / stdio / wrename.c
1 #include <windows.h>
2 #include <msvcrt/stdio.h>
3 #include <msvcrt/io.h>
4
5
6 int _wrename(const wchar_t* old_, const wchar_t* new_)
7 {
8     if (old_ == NULL || new_ == NULL)
9         return -1;
10
11     if (!MoveFileW(old_, new_))
12         return -1;
13
14     return 0;
15 }