// S : tags stdio libc c // S : expect --result valid // S : cc -o test.bc -D_PDCLIB_BUILD -DTEST $file // S : verify -o nofail:malloc test.bc #include #include #include #define _PDCLIB_FILEID "stdio/sprintf.c" #define _PDCLIB_STRINGIO #include #include "_PDCLIB_test.h" #define testprintf( s, ... ) sprintf( s, __VA_ARGS__ ) int main( void ) { char target[100]; #include "printf_testcases.h" return TEST_RESULTS; }