X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=libiberty%2Fmemcpy.c;h=7f67d0bd1f26c8ef5e89bfdf7ea71d25cfb40c4c;hb=cbda93a56a0af8d7787ff091caad64af1b2bd085;hp=0f2bac7ac2c8a28fe9035587e9a18b9967dee3cb;hpb=2ee563b53258d390d7446e90a67f465d504ae44c;p=platform%2Fupstream%2Fbinutils.git diff --git a/libiberty/memcpy.c b/libiberty/memcpy.c index 0f2bac7..7f67d0b 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,14 +14,12 @@ Copies @var{length} bytes from memory region @var{in} to region */ #include -#ifdef __STDC__ #include -#else -#define size_t unsigned long -#endif + +void bcopy (const void*, void*, size_t); PTR -DEFUN(memcpy, (out, in, length), PTR out AND const PTR in AND size_t length) +memcpy (PTR out, const PTR in, size_t length) { bcopy(in, out, length); return out;