int _PDCLIB_rename( const char * old, const char * new )
{
/* Note that the behaviour if new file exists is implementation-defined.
int _PDCLIB_rename( const char * old, const char * new )
{
/* Note that the behaviour if new file exists is implementation-defined.
- char filename1[ L_tmpnam + 6 ] = "touch ";
- char filename2[ L_tmpnam ];
- tmpnam( filename1 + 6 );
- tmpnam( filename2);
+ char filename1[] = "touch testfile1";
+ char filename2[] = "testfile2";
+ remove( filename1 + 6 );
+ remove( filename2 );
/* check that neither file exists */
TESTCASE( fopen( filename1 + 6, "r" ) == NULL );
TESTCASE( fopen( filename2, "r" ) == NULL );
/* check that neither file exists */
TESTCASE( fopen( filename1 + 6, "r" ) == NULL );
TESTCASE( fopen( filename2, "r" ) == NULL );