/* _PDCLIB_rename( const char *, const char * ) This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. */ #include #ifndef REGTEST #include "_PDCLIB_glue.h" #include #include void _PDCLIB_w32errno( void ); int _PDCLIB_rename( const char * old, const char * new ) { BOOL ok = MoveFile(old, new); if(!ok) { _PDCLIB_w32errno(); } return !ok; } #endif #ifdef TEST #include "_PDCLIB_test.h" #include int main( void ) { return TEST_RESULTS; } #endif