X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=libiberty%2Fmemcpy.c;h=7f67d0bd1f26c8ef5e89bfdf7ea71d25cfb40c4c;hb=cf950fd4dd4581849a445a76b57514d72074927d;hp=5eece7a0a0015c2535d50c58e03a33e16129519c;hpb=7ec2fc6f764fef9000cc768516df04035c85ebac;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/memcpy.c b/libiberty/memcpy.c index 5eece7a0a0..7f67d0bd1f 100644 --- a/libiberty/memcpy.c +++ b/libiberty/memcpy.c @@ -3,7 +3,8 @@ /* -@deftypefn Supplemental void* memcpy (void *@var{out}, const void *@var{in}, size_t @var{length}) +@deftypefn Supplemental void* memcpy (void *@var{out}, const void *@var{in}, @ + size_t @var{length}) Copies @var{length} bytes from memory region @var{in} to region @var{out}. Returns a pointer to @var{out}. @@ -13,19 +14,12 @@ Copies @var{length} bytes from memory region @var{in} to region */ #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 -memcpy (out, in, length) - PTR out; - const PTR in; - size_t length; +memcpy (PTR out, const PTR in, size_t length) { bcopy(in, out, length); return out;