]> pd.if.org Git - pdclib/blobdiff - functions/string/memmove.c
Added #ifdef to allow regression against system lib.
[pdclib] / functions / string / memmove.c
index e9a52b20ed8864a6078121eabb75b3c3a4fd9e9c..7a01996b3aceea9dec863bb7a836262d88670783 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,12 +35,14 @@ void * memmove( void * s1, const void * s2, size_t n )
     return s1;
 }
 
+#endif
+
 #ifdef TEST
 #include <_PDCLIB_test.h>
 
 int main()
 {
-    char s[10] = "xxxxabcde";
+    char s[] = "xxxxabcde";
     BEGIN_TESTS;
     TESTCASE( memmove( s, s + 4, 5 ) == s );
     TESTCASE( s[0] == 'a' );