aboutsummaryrefslogtreecommitdiff
path: root/libiberty/stpcpy.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2005-03-28 05:07:08 +0000
committerDJ Delorie <dj@redhat.com>2005-03-28 05:07:08 +0000
commit1e45deed6a87c05c9e669e3cdfdda47cbfa9531d (patch)
treee2c1bba3c03c5917c8e70792a921dfc6b6b5eef9 /libiberty/stpcpy.c
parent49b1fae4309ab5b9833f0af388483c2b6b4b3d50 (diff)
downloadgdb-1e45deed6a87c05c9e669e3cdfdda47cbfa9531d.zip
gdb-1e45deed6a87c05c9e669e3cdfdda47cbfa9531d.tar.gz
gdb-1e45deed6a87c05c9e669e3cdfdda47cbfa9531d.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/stpcpy.c')
-rw-r--r--libiberty/stpcpy.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/libiberty/stpcpy.c b/libiberty/stpcpy.c
index a589642..b7148d8 100644
--- a/libiberty/stpcpy.c
+++ b/libiberty/stpcpy.c
@@ -30,19 +30,13 @@ Copies the string @var{src} into @var{dst}. Returns a pointer to
*/
#include <ansidecl.h>
-#ifdef ANSI_PROTOTYPES
#include <stddef.h>
-#else
-#define size_t unsigned long
-#endif
-extern size_t strlen PARAMS ((const char *));
-extern PTR memcpy PARAMS ((PTR, const PTR, size_t));
+extern size_t strlen (const char *);
+extern PTR memcpy (PTR, const PTR, size_t);
char *
-stpcpy (dst, src)
- char *dst;
- const char *src;
+stpcpy (char *dst, const char *src)
{
const size_t len = strlen (src);
return (char *) memcpy (dst, src, len + 1) + len;