X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fmemmove.c;h=116e411b950b49820fe41da91b8306a7118161d7;hb=b1fc26afebd4d557ff89a44bc21767a8704c3809;hp=e9a52b20ed8864a6078121eabb75b3c3a4fd9e9c;hpb=47cd4aa15a86be053158e818e8d52bfdda0511b8;p=pdclib diff --git a/functions/string/memmove.c b/functions/string/memmove.c index e9a52b2..116e411 100644 --- a/functions/string/memmove.c +++ b/functions/string/memmove.c @@ -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 +#ifndef REGTEST + void * memmove( void * s1, const void * s2, size_t n ) { char * dest = (char *) s1; @@ -33,13 +31,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' );