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