X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstring%2Fmemmove.c;h=f83a1abedec2b59ba7660b4d7addfb66082e7ff6;hp=e9a52b20ed8864a6078121eabb75b3c3a4fd9e9c;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=47cd4aa15a86be053158e818e8d52bfdda0511b8 diff --git a/functions/string/memmove.c b/functions/string/memmove.c index e9a52b2..f83a1ab 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> +#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' );