]> pd.if.org Git - pdclib/blobdiff - functions/string/strerror.c
More fixes.
[pdclib] / functions / string / strerror.c
index b0ced5dba5d308ba904276973f32c53575004009..8c9f8764b7b2eb45ed15d1f486671b258981e2b9 100644 (file)
@@ -1,5 +1,3 @@
-/* $Id$ */
-
 /* strerror( int )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -15,7 +13,7 @@
 /* TODO: Doing this via a static array is not the way to do it. */
 char * strerror( int errnum )
 {
-    if ( errnum == 0 || errnum >= _PDCLIB_ERRNO_MAX )
+    if ( errnum >= _PDCLIB_ERRNO_MAX )
     {
         return (char *)"Unknown error";
     }
@@ -28,7 +26,8 @@ char * strerror( int errnum )
 #endif
 
 #ifdef TEST
-#include <_PDCLIB_test.h>
+
+#include "_PDCLIB_test.h"
 
 #include <stdio.h>
 #include <errno.h>
@@ -38,4 +37,5 @@ int main( void )
     TESTCASE( strerror( ERANGE ) != strerror( EDOM ) );
     return TEST_RESULTS;
 }
+
 #endif