X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fsnprintf.c;h=6dd39671fdf33647fb4b5d97f9022c3dad547372;hb=a7a8d2f1c85c2d7760d4d3479e90466cc3a81b04;hp=a2d8441bae9900a145b9e0ce0eb77106b30ad304;hpb=60dae0fec674240bad2a6acc58dadbd81cbd9c3a;p=pdclib diff --git a/functions/stdio/snprintf.c b/functions/stdio/snprintf.c index a2d8441..6dd3967 100644 --- a/functions/stdio/snprintf.c +++ b/functions/stdio/snprintf.c @@ -24,17 +24,17 @@ int snprintf( char * _PDCLIB_restrict s, size_t n, const char * _PDCLIB_restrict #endif #ifdef TEST -#include <_PDCLIB_test.h> +#define _PDCLIB_FILEID "stdio/snprintf.c" +#define _PDCLIB_STRINGIO -#include -#include +#include <_PDCLIB_test.h> -#define testprintf( s, n, format, ... ) snprintf( s, n, format, __VA_ARGS__ ) +#define testprintf( s, format, ... ) snprintf( s, 100, format, __VA_ARGS__ ) int main( void ) { - char buffer[100]; -#include "printf_testcases.incl" + char target[100]; +#include "printf_testcases.h" return TEST_RESULTS; }