]> pd.if.org Git - pdclib/blobdiff - functions/stdio/sscanf.c
Porting current working set from CVS.
[pdclib] / functions / stdio / sscanf.c
diff --git a/functions/stdio/sscanf.c b/functions/stdio/sscanf.c
new file mode 100644 (file)
index 0000000..f379dca
--- /dev/null
@@ -0,0 +1,34 @@
+/* $Id$ */
+
+/* Release $Name$ */
+
+/* sscanf( const char *, const char *, ... )
+
+   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 sscanf( const char * _PDCLIB_restrict s, const char * _PDCLIB_restrict format, ... )
+{
+    va_list ap;
+    va_start( ap, format );
+    return vsscanf( s, format, ap );
+}
+
+#endif
+
+#ifdef TEST
+#include <_PDCLIB_test.h>
+
+int main( void )
+{
+    TESTCASE( NO_TESTDRIVER );
+    return TEST_RESULTS;
+}
+
+#endif