int printf( const char * _PDCLIB_restrict format, ... )
{
+ int rc;
va_list ap;
va_start( ap, format );
- return vfprintf( stdout, format, ap );
+ rc = vfprintf( stdout, format, ap );
+ va_end( ap );
+ return rc;
}
#endif
int main( void )
{
- TESTCASE( NO_TESTDRIVER );
+ TESTCASE( printf( "SUCCESS testing printf().\n" ) == 26 );
return TEST_RESULTS;
}