]> pd.if.org Git - pdclib/blobdiff - functions/string/strrchr.c
Whitespace cleanups.
[pdclib] / functions / string / strrchr.c
index 69321b29e15e8ad4b2e6a37e81c2bfca80fabde9..c2369fa4589269bd02864ed7a581b85cdbbfabbc 100644 (file)
@@ -1,8 +1,4 @@
-/* $Id$ */
-
-/* Release $Name$ */
-
-/* strrchr( const char *, int c )
+/* strrchr( const char *, int )
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
@@ -29,16 +25,17 @@ char * strrchr( const char * s, int c )
 #endif
 
 #ifdef TEST
-#include <_PDCLIB_test.h>
 
-int main()
+#include "_PDCLIB_test.h"
+
+int main( void )
 {
     char abccd[] = "abccd";
-    BEGIN_TESTS;
     TESTCASE( strrchr( abcde, '\0' ) == &abcde[5] );
     TESTCASE( strrchr( abcde, 'e' ) == &abcde[4] );
     TESTCASE( strrchr( abcde, 'a' ) == &abcde[0] );
     TESTCASE( strrchr( abccd, 'c' ) == &abccd[3] );
     return TEST_RESULTS;
 }
+
 #endif