#include <stdint.h>
#include <string.h>
-
static int testprintf( char * s, size_t n, const char * format, ... )
{
int i;
return i;
}
+#define TESTCASE_SPRINTF( x ) if ( strcmp( buffer, x ) == 0 ) {} \
+ else { TEST_RESULTS += 1; printf( "FAILED: " __FILE__ ", line %d - \"%s\" != %s\n", __LINE__, buffer, #x ); }
+
int main( void )
{
char buffer[100];