projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added binary and unicode file i/o support to msvcrt.
[reactos.git]
/
reactos
/
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
}