From 1e45deed6a87c05c9e669e3cdfdda47cbfa9531d Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Mon, 28 Mar 2005 05:07:08 +0000 Subject: merge from gcc --- libiberty/stpcpy.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'libiberty/stpcpy.c') 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 -#ifdef ANSI_PROTOTYPES #include -#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; -- cgit v1.1