X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fmemmove.c;h=af8981358414436351221d091cbb50bd52943232;hb=d865c4403fc91d1f1ac95ba76febcee9f429bb97;hp=7c50deeb6ead1e8d0c1cac5a3e2e3e793d7b6931;hpb=2f57d79a5a24856fdea69b2119d67e5fb5029b3e;p=pdclib diff --git a/functions/string/memmove.c b/functions/string/memmove.c index 7c50dee..af89813 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,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