X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fmemmove.c;h=3bb889532ed96a3898004b2b130678d5b4f9c1f5;hb=d02f38605b53cdff5460cc6b9e1b2a80c3a2ba4c;hp=7c50deeb6ead1e8d0c1cac5a3e2e3e793d7b6931;hpb=2f57d79a5a24856fdea69b2119d67e5fb5029b3e;p=pdclib diff --git a/functions/string/memmove.c b/functions/string/memmove.c index 7c50dee..3bb8895 100644 --- a/functions/string/memmove.c +++ b/functions/string/memmove.c @@ -10,6 +10,8 @@ #include +#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[] = "xxxxabcde"; - BEGIN_TESTS; TESTCASE( memmove( s, s + 4, 5 ) == s ); TESTCASE( s[0] == 'a' ); TESTCASE( s[4] == 'e' );