]> pd.if.org Git - pdclib/blobdiff - functions/string/memmove.c
Porting current working set from CVS.
[pdclib] / functions / string / memmove.c
index e9a52b20ed8864a6078121eabb75b3c3a4fd9e9c..3bb889532ed96a3898004b2b130678d5b4f9c1f5 100644 (file)
@@ -10,6 +10,8 @@
 
 #include <string.h>
 
+#ifndef REGTEST
+
 void * memmove( void * s1, const void * s2, size_t n )
 {
     char * dest = (char *) s1;
@@ -33,13 +35,14 @@ void * memmove( void * s1, const void * s2, size_t n )
     return s1;
 }
 
+#endif
+
 #ifdef TEST
 #include <_PDCLIB_test.h>
 
-int main()
+int main( void )
 {
-    char s[10] = "xxxxabcde";
-    BEGIN_TESTS;
+    char s[] = "xxxxabcde";
     TESTCASE( memmove( s, s + 4, 5 ) == s );
     TESTCASE( s[0] == 'a' );
     TESTCASE( s[4] == 'e' );