]> pd.if.org Git - pdclib/blobdiff - functions/string/strspn.c
Comment cleanups.
[pdclib] / functions / string / strspn.c
index a5859cc2ca89b7b2d544457370fde2a74b6c550a..0cf90df051ecbbcce66c8345fcd38119635d5afd 100644 (file)
@@ -1,7 +1,3 @@
-/* $Id$ */
-
-/* Release $Name$ */
-
 /* strspn( const char *, const char * )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -10,6 +6,8 @@
 
 #include <string.h>
 
+#ifndef REGTEST
+
 size_t strspn( const char * s1, const char * s2 )
 {
     size_t len = 0;
@@ -34,12 +32,13 @@ size_t strspn( const char * s1, const char * s2 )
     return len;
 }
 
+#endif
+
 #ifdef TEST
 #include <_PDCLIB_test.h>
 
-int main()
+int main( void )
 {
-    BEGIN_TESTS;
     TESTCASE( strspn( abcde, "abc" ) == 3 );
     TESTCASE( strspn( abcde, "b" ) == 0 );
     TESTCASE( strspn( abcde, abcde ) == 5 );