projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac1f7f7
)
Use K&R form to allow use in other GNU packages.
author
drepper
<drepper>
Wed, 20 Aug 1997 03:49:36 +0000
(
03:49
+0000)
committer
drepper
<drepper>
Wed, 20 Aug 1997 03:49:36 +0000
(
03:49
+0000)
sysdeps/generic/stpcpy.c
patch
|
blob
|
history
diff --git
a/sysdeps/generic/stpcpy.c
b/sysdeps/generic/stpcpy.c
index
f010179
..
9800ace
100644
(file)
--- a/
sysdeps/generic/stpcpy.c
+++ b/
sysdeps/generic/stpcpy.c
@@
-18,9
+18,15
@@
#include <string.h>
+#ifndef weak_alias
+# define __stpcpy stpcpy
+#endif
+
/* Copy SRC to DEST, returning the address of the terminating '\0' in DEST. */
char *
-__stpcpy (char *dest, const char *src)
+__stpcpy (dest, src)
+ char *dest;
+ const char *src;
{
register char *d = dest;
register const char *s = src;
@@
-31,4
+37,6
@@
__stpcpy (char *dest, const char *src)
return d - 1;
}
+#ifdef weak_alias
weak_alias (__stpcpy, stpcpy)
+#endif