X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=libiberty%2Fmemmove.c;h=ebda7cbb41caa9d0814658115c299e1d6874e517;hb=5b660084e26050d2e7f1fda06daec1e83311c188;hp=00ac053401bf34833e5447c374153b7fefd68611;hpb=7ec2fc6f764fef9000cc768516df04035c85ebac;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/memmove.c b/libiberty/memmove.c index 00ac053401..ebda7cbb41 100644 --- a/libiberty/memmove.c +++ b/libiberty/memmove.c @@ -3,7 +3,8 @@ /* -@deftypefn Supplemental void* memmove (void *@var{from}, const void *@var{to}, size_t @var{count}) +@deftypefn Supplemental void* memmove (void *@var{from}, const void *@var{to}, @ + size_t @var{count}) Copies @var{count} bytes from memory area @var{from} to memory area @var{to}, returning a pointer to @var{to}. @@ -13,19 +14,12 @@ Copies @var{count} bytes from memory area @var{from} to memory area */ #include -#ifdef ANSI_PROTOTYPES #include -#else -#define size_t unsigned long -#endif -void bcopy PARAMS ((const void*, void*, size_t)); +void bcopy (const void*, void*, size_t); PTR -memmove (s1, s2, n) - PTR s1; - const PTR s2; - size_t n; +memmove (PTR s1, const PTR s2, size_t n) { bcopy (s2, s1, n); return s1;