X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffprintf.c;fp=functions%2Fstdio%2Ffprintf.c;h=45369c6ac256d7a90551ca09ac87fb7df72f2655;hb=8fdcadf9530faa3267f9a41375ff1760c991f027;hp=14318a261d327e14a9d6a86c52e43119dc22c73b;hpb=84119d374a4d8fafc25d9daf7e208837893d1774;p=pdclib diff --git a/functions/stdio/fprintf.c b/functions/stdio/fprintf.c index 14318a2..45369c6 100644 --- a/functions/stdio/fprintf.c +++ b/functions/stdio/fprintf.c @@ -13,9 +13,12 @@ int fprintf( FILE * _PDCLIB_restrict stream, const char * _PDCLIB_restrict format, ... ) { + int rc; va_list ap; va_start( ap, format ); - return vfprintf( stream, format, ap ); + rc = vfprintf( stream, format, ap ); + va_end( ap ); + return rc; } #endif