git://git.jankratochvil.net
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update for HEAD-2003091401
[reactos.git]
/
lib
/
msvcrt
/
stdio
/
rename.c
diff --git
a/lib/msvcrt/stdio/rename.c
b/lib/msvcrt/stdio/rename.c
index
6139cf7
..
5f0f185
100644
(file)
--- a/
lib/msvcrt/stdio/rename.c
+++ b/
lib/msvcrt/stdio/rename.c
@@
-3,25
+3,16
@@
#include <msvcrt/io.h>
#include <msvcrt/io.h>
-int rename(const char *old_, const char *new_)
+/*
+ * @implemented
+ */
+int rename(const char* old_, const char* new_)
{
{
- if (old_ == NULL || new_ == NULL)
- return -1;
+
if (old_ == NULL || new_ == NULL)
+
return -1;
-
if (!MoveFileA(old_,
new_))
- return -1;
+
if (!MoveFileA(old_,
new_))
+
return -1;
- return 0;
+
return 0;
}
}
-
-int _wrename(const wchar_t *old_, const wchar_t *new_)
-{
- if (old_ == NULL || new_ == NULL)
- return -1;
-
- if (!MoveFileW(old_,new_))
- return -1;
-
- return 0;
-}
-