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.
13 #include <_PDCLIB_io.h>
15 int _PDCLIB_vscanf_unlocked( const char * _PDCLIB_restrict format,
18 return _PDCLIB_vfscanf_unlocked( stdin, format, arg );
21 int vscanf( const char * _PDCLIB_restrict format, _PDCLIB_va_list arg )
23 return vfscanf( stdin, format, arg );
29 #define _PDCLIB_FILEID "stdio/vscanf.c"
30 #define _PDCLIB_FILEIO
32 #include <_PDCLIB_test.h>
34 static int testscanf( FILE * stream, const char * format, ... )
38 va_start( arg, format );
39 i = vscanf( format, arg );
47 TESTCASE( ( source = freopen( testfile, "wb+", stdin ) ) != NULL );
48 #include "scanf_testcases.h"
49 TESTCASE( fclose( source ) == 0 );
50 TESTCASE( remove( testfile ) == 0 );