X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fsprintf.c;h=1c1d666b44c1a5805aaa149127e8ecdde20026c0;hb=1e97a50165e6addbf816932e58117cb31f54e1fb;hp=a4b28e1842fdbc0db75be225376d3b379f3c0c46;hpb=dc208a7471f0de2ee1bf6138a5c61bfa2471f52b;p=pdclib.old diff --git a/functions/stdio/sprintf.c b/functions/stdio/sprintf.c index a4b28e1..1c1d666 100644 --- a/functions/stdio/sprintf.c +++ b/functions/stdio/sprintf.c @@ -25,11 +25,19 @@ int sprintf( char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, .. #endif #ifdef TEST +#define _PDCLIB_FILEID "stdio/sprintf.c" +#define SPRINTF_FUNCTION #include <_PDCLIB_test.h> +#include +#include + +#define testprintf( s, format, ... ) sprintf( s, format, __VA_ARGS__ ) + int main( void ) { - TESTCASE( NO_TESTDRIVER ); + char target[100]; +#include "printf_testcases.incl" return TEST_RESULTS; }