-// ----------------------------------------------------------------------------
-// $Id$
-// ----------------------------------------------------------------------------
-// Public Domain C Library - http://pdclib.sourceforge.net
-// This code is Public Domain. Use, modify, and redistribute at will.
-// ----------------------------------------------------------------------------
+/* $Id$ */
-int printf( const char * restrict format, ... ) { /* TODO */ };
+/* printf( const char *, ... )
-/* PDPC code - unreviewed
+ 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 printf( const char * _PDCLIB_restrict format, ... )
{
- va_list arg;
- int ret;
+ va_list ap;
+ va_start( ap, format );
+ return vfprintf( stdout, format, ap );
+}
- va_start(arg, format);
- ret = vfprintf(stdout, format, arg);
- va_end(arg);
- return (ret);
+#endif
+
+#ifdef TEST
+#include <_PDCLIB_test.h>
+
+int main( void )
+{
+ TESTCASE( NO_TESTDRIVER );
+ return TEST_RESULTS;
}
-*/
+
+#endif