]> pd.if.org Git - pdclib/blobdiff - functions/stdio/vsprintf.c
*Much* better.
[pdclib] / functions / stdio / vsprintf.c
index 733dcd452807f882d56b14af88dd7669a26ac1df..7515a6fc49aa0b7afd262c35c2d6b7345a514f87 100644 (file)
@@ -20,13 +20,15 @@ int vsprintf( char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, v
 #endif
 
 #ifdef TEST
+#define _PDCLIB_FILEID "stdio/vsprintf.c"
+#define SPRINTF_FUNCTION
 #include <_PDCLIB_test.h>
 
 #include <limits.h>
 #include <stdint.h>
 #include <string.h>
 
-static int testprintf( char * s, size_t n, const char * format, ... )
+static int testprintf( char * s, const char * format, ... )
 {
     int i;
     va_list arg;
@@ -36,11 +38,9 @@ static int testprintf( char * s, size_t n, const char * format, ... )
     return i;
 }
 
-#define TESTCASE_SPRINTF( x ) TESTCASE( x )
-
 int main( void )
 {
-    char buffer[100];
+    char target[100];
 #include "printf_testcases.incl"
     return TEST_RESULTS;
 }