-/* $Id$ */
-
/* snprintf( char *, size_t, const char *, ... )
This file is part of the Public Domain C Library (PDCLib).
#define _PDCLIB_FILEID "stdio/snprintf.c"
#define _PDCLIB_STRINGIO
-#include <_PDCLIB_test.h>
+#include "_PDCLIB_test.h"
#define testprintf( s, format, ... ) snprintf( s, 100, format, __VA_ARGS__ )
{
char target[100];
#include "printf_testcases.h"
+ TESTCASE( snprintf( NULL, 0, "foo" ) == 3 );
+ TESTCASE( snprintf( NULL, 0, "%d", 100 ) == 3 );
return TEST_RESULTS;
}