]> pd.if.org Git - pdclib/blobdiff - functions/string/memmove.c
Whitespace cleanups.
[pdclib] / functions / string / memmove.c
index 7c50deeb6ead1e8d0c1cac5a3e2e3e793d7b6931..af8981358414436351221d091cbb50bd52943232 100644 (file)
@@ -1,7 +1,3 @@
-/* $Id$ */
-
-/* Release $Name$ */
-
 /* memmove( void *, const void *, size_t )
 
    This file is part of the Public Domain C Library (PDCLib).
@@ -10,6 +6,8 @@
 
 #include <string.h>
 
+#ifndef REGTEST
+
 void * memmove( void * s1, const void * s2, size_t n )
 {
     char * dest = (char *) s1;
@@ -33,13 +31,15 @@ void * memmove( void * s1, const void * s2, size_t n )
     return s1;
 }
 
+#endif
+
 #ifdef TEST
-#include <_PDCLIB_test.h>
 
-int main()
+#include "_PDCLIB_test.h"
+
+int main( void )
 {
     char s[] = "xxxxabcde";
-    BEGIN_TESTS;
     TESTCASE( memmove( s, s + 4, 5 ) == s );
     TESTCASE( s[0] == 'a' );
     TESTCASE( s[4] == 'e' );
@@ -48,4 +48,5 @@ int main()
     TESTCASE( s[4] == 'a' );
     return TEST_RESULTS;
 }
+
 #endif