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.
14 int scanf( const char * _PDCLIB_restrict format, ... )
17 va_start( ap, format );
18 return vfscanf( stdin, format, ap );
24 #define _PDCLIB_FILEID "stdio/scanf.c"
25 #define _PDCLIB_FILEIO
27 #include <_PDCLIB_test.h>
29 #define testscanf( stream, format, ... ) scanf( format, __VA_ARGS__ )
34 TESTCASE( ( source = freopen( testfile, "wb+", stdin ) ) != NULL );
35 #include "scanf_testcases.h"
36 TESTCASE( fclose( source ) == 0 );
37 TESTCASE( remove( testfile ) == 0 );