X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffprintf.c;h=07283b2d162dc5ac0c6c80bfc32d515ab94aef1c;hb=HEAD;hp=0227cd4d17ad520dfb99bc21160d060f0ccb93bb;hpb=0e35e82c5e9a0804864839e8fc0e985b1ae41f07;p=pdclib.old diff --git a/functions/stdio/fprintf.c b/functions/stdio/fprintf.c index 0227cd4..07283b2 100644 --- a/functions/stdio/fprintf.c +++ b/functions/stdio/fprintf.c @@ -12,13 +12,13 @@ #ifndef REGTEST #include <_PDCLIB_io.h> -int fprintf_unlocked( FILE * _PDCLIB_restrict stream, +int _PDCLIB_fprintf_unlocked( FILE * _PDCLIB_restrict stream, const char * _PDCLIB_restrict format, ... ) { int rc; va_list ap; va_start( ap, format ); - rc = vfprintf( stream, format, ap ); + rc = _PDCLIB_vfprintf_unlocked( stream, format, ap ); va_end( ap ); return rc; } @@ -29,9 +29,9 @@ int fprintf( FILE * _PDCLIB_restrict stream, int rc; va_list ap; va_start( ap, format ); - flockfile( stream ); - rc = vfprintf_unlocked( stream, format, ap ); - funlockfile( stream ); + _PDCLIB_flockfile( stream ); + rc = _PDCLIB_vfprintf_unlocked( stream, format, ap ); + _PDCLIB_funlockfile( stream ); va_end( ap ); return rc; } @@ -39,6 +39,8 @@ int fprintf( FILE * _PDCLIB_restrict stream, #endif #ifdef TEST +#include +#include #define _PDCLIB_FILEID "stdio/fprintf.c" #define _PDCLIB_FILEIO