-/* $Id$ */
-
/* _PDCLIB_rename( const char *, const char * )
This file is part of the Public Domain C Library (PDCLib).
#ifndef REGTEST
#include <_PDCLIB_glue.h>
#include <errno.h>
+#include <windows.h>
+void _PDCLIB_w32errno( void );
int _PDCLIB_rename( const char * old, const char * new )
{
- errno = ENOTSUP;
+
+ BOOL ok = MoveFile(old, new);
+ if(!ok) {
+ _PDCLIB_w32errno();
+ }
+ return !ok;
}
#endif