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.
11 #include <_PDCLIB_io.h>
13 int _PDCLIB_scanf_unlocked( const char * _PDCLIB_restrict format, ... )
16 va_start( ap, format );
17 return _PDCLIB_vfscanf_unlocked( stdin, format, ap );
20 int scanf( const char * _PDCLIB_restrict format, ... )
23 va_start( ap, format );
24 return vfscanf( stdin, format, ap );
30 #define _PDCLIB_FILEID "stdio/scanf.c"
31 #define _PDCLIB_FILEIO
33 #include <_PDCLIB_test.h>
35 #define testscanf( stream, format, ... ) scanf( format, __VA_ARGS__ )
40 TESTCASE( ( source = freopen( testfile, "wb+", stdin ) ) != NULL );
41 #include "scanf_testcases.h"
42 TESTCASE( fclose( source ) == 0 );
43 TESTCASE( remove( testfile ) == 0 );