- Cleanup the /lib directory, by putting more 3rd-party libs in /3rdparty, and by...
[reactos.git] / reactos / lib / sdk / crt / stdio / rename.c
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/crt/??????
5 * PURPOSE: Unknown
6 * PROGRAMER: Unknown
7 * UPDATE HISTORY:
8 * 25/11/05: Created
9 */
10
11 #include <precomp.h>
12 #include <tchar.h>
13
14 /*
15 * @implemented
16 */
17 int _trename(const _TCHAR* old_, const _TCHAR* new_)
18 {
19 if (old_ == NULL || new_ == NULL)
20 return -1;
21
22 if (!MoveFile(old_, new_))
23 return -1;
24
25 return 0;
26 }