projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added some functions.
[fw/pdclib]
/
functions
/
stdio
/
printf.c
diff --git
a/functions/stdio/printf.c
b/functions/stdio/printf.c
index 7088e9322bb0e082b081adbd0fc201f89f895b2c..ac3dfc355108de46aca18d44a2b787b9ed1d7cd3 100644
(file)
--- a/
functions/stdio/printf.c
+++ b/
functions/stdio/printf.c
@@
-13,9
+13,12
@@
int printf( const char * _PDCLIB_restrict format, ... )
{
+ int rc;
va_list ap;
va_start( ap, format );
- return vfprintf( stdout, format, ap );
+ rc = vfprintf( stdout, format, ap );
+ va_end( ap );
+ return rc;
}
#endif