/* rename( const char *, const char * )
This file is part of the Public Domain C Library (PDCLib).
/* rename( const char *, const char * )
This file is part of the Public Domain C Library (PDCLib).
while ( current != NULL )
{
if ( ( current->filename != NULL ) && ( strcmp( current->filename, old ) == 0 ) )
while ( current != NULL )
{
if ( ( current->filename != NULL ) && ( strcmp( current->filename, old ) == 0 ) )
TESTCASE( fopen( testfile1, "r" ) == NULL );
TESTCASE( fopen( testfile2, "r" ) == NULL );
/* rename file 1 to file 2 - expected to fail */
TESTCASE( fopen( testfile1, "r" ) == NULL );
TESTCASE( fopen( testfile2, "r" ) == NULL );
/* rename file 1 to file 2 - expected to fail */
/* create file 1 */
TESTCASE( ( file = fopen( testfile1, "w" ) ) != NULL );
TESTCASE( fputs( "x", file ) != EOF );
/* create file 1 */
TESTCASE( ( file = fopen( testfile1, "w" ) ) != NULL );
TESTCASE( fputs( "x", file ) != EOF );