X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffscanf.c;h=f9b950eee7edcbd4ec68f62532a4ea4ed20d84e2;hb=b5b6c4a890795ea76f9b92b817b0a83c6bb4862c;hp=6c0c70b10e7ee2c1f7789666ac835c90a45ed24c;hpb=33515db12d3cc5e53a8bdea58d2cde299cba2267;p=pdclib.old diff --git a/functions/stdio/fscanf.c b/functions/stdio/fscanf.c index 6c0c70b..f9b950e 100644 --- a/functions/stdio/fscanf.c +++ b/functions/stdio/fscanf.c @@ -10,8 +10,21 @@ #include #ifndef REGTEST +#include <_PDCLIB_io.h> -int fscanf( FILE * _PDCLIB_restrict stream, const char * _PDCLIB_restrict format, ... ) +int _PDCLIB_fscanf_unlocked( FILE * _PDCLIB_restrict stream, + const char * _PDCLIB_restrict format, ... ) +{ + int rc; + va_list ap; + va_start( ap, format ); + rc = _PDCLIB_vfscanf_unlocked( stream, format, ap ); + va_end( ap ); + return rc; +} + +int fscanf( FILE * _PDCLIB_restrict stream, + const char * _PDCLIB_restrict format, ... ) { int rc; va_list ap;