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.
14 int fscanf_unlocked( FILE * _PDCLIB_restrict stream,
15 const char * _PDCLIB_restrict format, ... )
19 va_start( ap, format );
20 rc = vfscanf_unlocked( stream, format, ap );
25 int fscanf( FILE * _PDCLIB_restrict stream,
26 const char * _PDCLIB_restrict format, ... )
30 va_start( ap, format );
31 rc = vfscanf( stream, format, ap );
39 #define _PDCLIB_FILEID "stdio/fscanf.c"
40 #define _PDCLIB_FILEIO
42 #include <_PDCLIB_test.h>
44 #define testscanf( stream, format, ... ) fscanf( stream, format, __VA_ARGS__ )
49 TESTCASE( ( source = tmpfile() ) != NULL );
50 #include "scanf_testcases.h"
51 TESTCASE( fclose( source ) == 0 );