X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Fsnprintf.c;h=db6778cc780fa6c635b1893763f846a03252923d;hp=6dd39671fdf33647fb4b5d97f9022c3dad547372;hb=f6b6a83981cda2a6f20a945631be2d9a7a257192;hpb=715fe6b88a65aad9123e44860fef880700e7167d diff --git a/functions/stdio/snprintf.c b/functions/stdio/snprintf.c index 6dd3967..db6778c 100644 --- a/functions/stdio/snprintf.c +++ b/functions/stdio/snprintf.c @@ -35,6 +35,8 @@ int main( void ) { char target[100]; #include "printf_testcases.h" + TESTCASE( snprintf( NULL, 0, "foo" ) == 3 ); + TESTCASE( snprintf( NULL, 0, "%d", 100 ) == 3 ); return TEST_RESULTS; }