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.
11 #include <_PDCLIB_io.h>
13 int _PDCLIB_fscanf_unlocked( FILE * _PDCLIB_restrict stream,
14 const char * _PDCLIB_restrict format, ... )
18 va_start( ap, format );
19 rc = _PDCLIB_vfscanf_unlocked( stream, format, ap );
24 int fscanf( FILE * _PDCLIB_restrict stream,
25 const char * _PDCLIB_restrict format, ... )
29 va_start( ap, format );
30 rc = vfscanf( stream, format, ap );
38 #define _PDCLIB_FILEID "stdio/fscanf.c"
39 #define _PDCLIB_FILEIO
41 #include <_PDCLIB_test.h>
43 #define testscanf( stream, format, ... ) fscanf( stream, format, __VA_ARGS__ )
48 TESTCASE( ( source = tmpfile() ) != NULL );
49 #include "scanf_testcases.h"
50 TESTCASE( fclose( source ) == 0 );