3 /* scanf( 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_scanf_unlocked( const char * _PDCLIB_restrict format, ... )
18 va_start( ap, format );
19 return _PDCLIB_vfscanf_unlocked( stdin, format, ap );
22 int scanf( const char * _PDCLIB_restrict format, ... )
25 va_start( ap, format );
26 return vfscanf( stdin, format, ap );
32 #define _PDCLIB_FILEID "stdio/scanf.c"
33 #define _PDCLIB_FILEIO
35 #include <_PDCLIB_test.h>
37 #define testscanf( stream, format, ... ) scanf( format, __VA_ARGS__ )
42 TESTCASE( ( source = freopen( testfile, "wb+", stdin ) ) != NULL );
43 #include "scanf_testcases.h"
44 TESTCASE( fclose( source ) == 0 );
45 TESTCASE( remove( testfile ) == 0 );