]> pd.if.org Git - pdclib.old/blobdiff - functions/stdio/vscanf.c
Porting current working set from CVS.
[pdclib.old] / functions / stdio / vscanf.c
diff --git a/functions/stdio/vscanf.c b/functions/stdio/vscanf.c
new file mode 100644 (file)
index 0000000..3adde22
--- /dev/null
@@ -0,0 +1,32 @@
+/* $Id$ */
+
+/* Release $Name$ */
+
+/* vscanf( const char *, va_list arg )
+
+   This file is part of the Public Domain C Library (PDCLib).
+   Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+#include <stdio.h>
+#include <stdarg.h>
+
+#ifndef REGTEST
+
+int vscanf( const char * _PDCLIB_restrict format, _PDCLIB_va_list arg )
+{
+    return vfscanf( stdin, format, arg );
+}
+
+#endif
+
+#ifdef TEST
+#include <_PDCLIB_test.h>
+
+int main( void )
+{
+    TESTCASE( NO_TESTDRIVER );
+    return TEST_RESULTS;
+}
+
+#endif