diff options
author | DJ Delorie <dj@redhat.com> | 2005-03-28 05:07:08 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2005-03-28 05:07:08 +0000 |
commit | 1e45deed6a87c05c9e669e3cdfdda47cbfa9531d (patch) | |
tree | e2c1bba3c03c5917c8e70792a921dfc6b6b5eef9 /libiberty/mempcpy.c | |
parent | 49b1fae4309ab5b9833f0af388483c2b6b4b3d50 (diff) | |
download | gdb-1e45deed6a87c05c9e669e3cdfdda47cbfa9531d.zip gdb-1e45deed6a87c05c9e669e3cdfdda47cbfa9531d.tar.gz gdb-1e45deed6a87c05c9e669e3cdfdda47cbfa9531d.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty/mempcpy.c')
-rw-r--r-- | libiberty/mempcpy.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/libiberty/mempcpy.c b/libiberty/mempcpy.c index b0dccfa..ebd105c 100644 --- a/libiberty/mempcpy.c +++ b/libiberty/mempcpy.c @@ -1,5 +1,5 @@ /* Implement the mempcpy function. - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. Written by Kaveh R. Ghazi <ghazi@caip.rutgers.edu>. This file is part of the libiberty library. @@ -30,19 +30,12 @@ Copies @var{length} bytes from memory region @var{in} to region */ #include <ansidecl.h> -#ifdef ANSI_PROTOTYPES #include <stddef.h> -#else -#define size_t unsigned long -#endif -extern PTR memcpy PARAMS ((PTR, const PTR, size_t)); +extern PTR memcpy (PTR, const PTR, size_t); PTR -mempcpy (dst, src, len) - PTR dst; - const PTR src; - size_t len; +mempcpy (PTR dst, const PTR src, size_t len) { return (char *) memcpy (dst, src, len) + len; } |