projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*Much* better.
[fw/pdclib]
/
functions
/
stdio
/
vsnprintf.c
diff --git
a/functions/stdio/vsnprintf.c
b/functions/stdio/vsnprintf.c
index fd9b4ac3fc34e5cb57477395371164b6536e3eaf..9c0258c7ed38ca901528a9dcbaafcef292580cfb 100644
(file)
--- a/
functions/stdio/vsnprintf.c
+++ b/
functions/stdio/vsnprintf.c
@@
-48,27
+48,27
@@
int vsnprintf( char * _PDCLIB_restrict s, size_t n, const char * _PDCLIB_restric
#endif
#ifdef TEST
#endif
#ifdef TEST
+#define _PDCLIB_FILEID "stdio/vsnprintf.c"
+#define SPRINTF_FUNCTION
#include <_PDCLIB_test.h>
#include <limits.h>
#include <stdint.h>
#include <string.h>
#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;
va_start( arg, format );
{
int i;
va_list arg;
va_start( arg, format );
- i = vsnprintf( s,
n
, format, arg );
+ i = vsnprintf( s,
100
, format, arg );
va_end( arg );
return i;
}
va_end( arg );
return i;
}
-#define TESTCASE_SPRINTF( x ) TESTCASE( x )
-
int main( void )
{
int main( void )
{
- char
buffer
[100];
+ char
target
[100];
#include "printf_testcases.incl"
return TEST_RESULTS;
}
#include "printf_testcases.incl"
return TEST_RESULTS;
}