3 /* vscanf( const char *, va_list arg )
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 vscanf_unlocked( const char * _PDCLIB_restrict format, _PDCLIB_va_list arg )
16 return vfscanf_unlocked( stdin, format, arg );
19 int vscanf( const char * _PDCLIB_restrict format, _PDCLIB_va_list arg )
21 return vfscanf( stdin, format, arg );
27 #define _PDCLIB_FILEID "stdio/vscanf.c"
28 #define _PDCLIB_FILEIO
30 #include <_PDCLIB_test.h>
32 static int testscanf( FILE * stream, const char * format, ... )
36 va_start( arg, format );
37 i = vscanf( format, arg );
45 TESTCASE( ( source = freopen( testfile, "wb+", stdin ) ) != NULL );
46 #include "scanf_testcases.h"
47 TESTCASE( fclose( source ) == 0 );
48 TESTCASE( remove( testfile ) == 0 );