X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fvsprintf.c;h=d3920fa5884e754ebbf49fb5721ad70e42d4fb12;hb=07810dbd8f3e21618208b923e293715774c80ade;hp=80180f57f08edf126e530c1a7227a95aaa1a485d;hpb=60dae0fec674240bad2a6acc58dadbd81cbd9c3a;p=pdclib diff --git a/functions/stdio/vsprintf.c b/functions/stdio/vsprintf.c index 80180f5..d3920fa 100644 --- a/functions/stdio/vsprintf.c +++ b/functions/stdio/vsprintf.c @@ -26,7 +26,6 @@ int vsprintf( char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, v #include #include - static int testprintf( char * s, size_t n, const char * format, ... ) { int i; @@ -37,6 +36,9 @@ static int testprintf( char * s, size_t n, const char * format, ... ) 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];