]> pd.if.org Git - pdclib.old/blobdiff - functions/stdio/perror.c
Copy & paste error having sscanf code in there. Fixed.
[pdclib.old] / functions / stdio / perror.c
index f93a53b522fa18ba3c8a00e9fa2a19973146cf8d..c59ca0b290a582934f50c3b4a467002915a4a527 100644 (file)
@@ -1,8 +1,30 @@
-// ----------------------------------------------------------------------------
-// $Id$
-// ----------------------------------------------------------------------------
-// Public Domain C Library - http://pdclib.sourceforge.net
-// This code is Public Domain. Use, modify, and redistribute at will.
-// ----------------------------------------------------------------------------
-
-void perror( const char * s ) { /* TODO */ };
+/* $Id$ */
+
+/* perror( 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>
+
+#ifndef REGTEST
+
+void perror( const char * s )
+{
+    /* TODO: Implement. */
+    return;
+}
+
+#endif
+
+#ifdef TEST
+#include <_PDCLIB_test.h>
+
+int main( void )
+{
+    TESTCASE( NO_TESTDRIVER );
+    return TEST_RESULTS;
+}
+
+#endif