1 /* scanf( 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 scanf( const char * _PDCLIB_restrict format, ... )
15 va_start( ap, format );
16 return vfscanf( stdin, format, ap );
22 #define _PDCLIB_FILEID "stdio/scanf.c"
23 #define _PDCLIB_FILEIO
25 #include "_PDCLIB_test.h"
27 #define testscanf( stream, format, ... ) scanf( format, __VA_ARGS__ )
32 TESTCASE( ( source = freopen( testfile, "wb+", stdin ) ) != NULL );
33 #include "scanf_testcases.h"
34 TESTCASE( fclose( source ) == 0 );
35 TESTCASE( remove( testfile ) == 0 );