projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reworked scanf() testing. General cleanups.
[fw/pdclib]
/
functions
/
stdio
/
sprintf.c
diff --git
a/functions/stdio/sprintf.c
b/functions/stdio/sprintf.c
index 50e13cd3c2bd95067656114fd80aa5c60774da03..887c6fcfa610f86c4f749fc51c63b131503fc83a 100644
(file)
--- a/
functions/stdio/sprintf.c
+++ b/
functions/stdio/sprintf.c
@@
-25,17
+25,17
@@
int sprintf( char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, ..
#endif
#ifdef TEST
#endif
#ifdef TEST
-#include <_PDCLIB_test.h>
+#define _PDCLIB_FILEID "stdio/sprintf.c"
+#define _PDCLIB_STRINGIO
-#include <string.h>
-#include <limits.h>
+#include <_PDCLIB_test.h>
-#define testprintf( s,
n,
format, ... ) sprintf( s, format, __VA_ARGS__ )
+#define testprintf( s, format, ... ) sprintf( s, format, __VA_ARGS__ )
int main( void )
{
int main( void )
{
- char
buffer
[100];
-#include "printf_testcases.
incl
"
+ char
target
[100];
+#include "printf_testcases.
h
"
return TEST_RESULTS;
}
return TEST_RESULTS;
}