1 /* fscanf( FILE *, const char *, ... )
3 This file is part of the Public Domain C Library (PDCLib).
4 Permission is granted to use, modify, and / or redistribute at will.
12 int fscanf( FILE * _PDCLIB_restrict stream, const char * _PDCLIB_restrict format, ... )
16 va_start( ap, format );
17 rc = vfscanf( stream, format, ap );
25 #define _PDCLIB_FILEID "stdio/fscanf.c"
26 #define _PDCLIB_FILEIO
28 #include "_PDCLIB_test.h"
30 #define testscanf( stream, format, ... ) fscanf( stream, format, __VA_ARGS__ )
35 TESTCASE( ( source = tmpfile() ) != NULL );
36 #include "scanf_testcases.h"
37 TESTCASE( fclose( source ) == 0 );