X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffprintf.c;h=8378a955f42f392928e4e2f00eb72cceb8425f03;hb=d2ce07b92a8796c7e351c0a21020ff927d9e7eb9;hp=14318a261d327e14a9d6a86c52e43119dc22c73b;hpb=d9dcf16664c81809258992e1653ecb68c8079974;p=pdclib.old diff --git a/functions/stdio/fprintf.c b/functions/stdio/fprintf.c index 14318a2..8378a95 100644 --- a/functions/stdio/fprintf.c +++ b/functions/stdio/fprintf.c @@ -11,11 +11,14 @@ #ifndef REGTEST -int fprintf( FILE * _PDCLIB_restrict stream, const char * _PDCLIB_restrict format, ... ) +int fprintf( struct _PDCLIB_file_t * _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