3 /* _PDCLIB_rename( const char *, const char * )
5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
11 #include <_PDCLIB_glue.h>
13 int _PDCLIB_rename( const char * old, const char * new )
15 /* Note that the behaviour if new file exists is implementation-defined.
16 There is nothing wrong with either overwriting it or failing the
17 operation, but you might want to document whichever you chose.
18 This example fails if new file exists.
20 if ( link( old, new ) == 0 )
33 #include <_PDCLIB_test.h>
37 TESTCASE( NO_TESTDRIVER );