3 /* vsprintf( char *, const char *, va_list ap )
5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
15 int vsprintf( char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, va_list arg )
17 return vsnprintf( s, SIZE_MAX, format, arg ); /* TODO: Replace with a non-checking call */
23 #include <_PDCLIB_test.h>
29 static int testprintf( char * s, const char * format, ... )
33 va_start( arg, format );
34 i = vsprintf( s, format, arg );
39 #define TESTCASE_SPRINTF( x ) if ( strcmp( target, x ) == 0 ) {} \
40 else { TEST_RESULTS += 1; printf( "FAILED: " __FILE__ ", line %d - \"%s\" != %s\n", __LINE__, target, #x ); }
45 #include "printf_testcases.incl"