3 /* fscanf( FILE *, const char *, ... )
5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
13 #include <_PDCLIB_io.h>
15 int _PDCLIB_fscanf_unlocked( FILE * _PDCLIB_restrict stream,
16 const char * _PDCLIB_restrict format, ... )
20 va_start( ap, format );
21 rc = _PDCLIB_vfscanf_unlocked( stream, format, ap );
26 int fscanf( FILE * _PDCLIB_restrict stream,
27 const char * _PDCLIB_restrict format, ... )
31 va_start( ap, format );
32 rc = vfscanf( stream, format, ap );
40 #define _PDCLIB_FILEID "stdio/fscanf.c"
41 #define _PDCLIB_FILEIO
43 #include <_PDCLIB_test.h>
45 #define testscanf( stream, format, ... ) fscanf( stream, format, __VA_ARGS__ )
50 TESTCASE( ( source = tmpfile() ) != NULL );
51 #include "scanf_testcases.h"
52 TESTCASE( fclose( source ) == 0 );