projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Get putenv.c from /copies (derived from glibc).
[gnulib.git]
/
lib
/
stpcpy.c
diff --git
a/lib/stpcpy.c
b/lib/stpcpy.c
index
4a70746
..
5ca0a2e
100644
(file)
--- a/
lib/stpcpy.c
+++ b/
lib/stpcpy.c
@@
-15,16
+15,18
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
-/* Copy SOURCE into DEST, stopping after copying the first '\0', and
- return a pointer to the '\0' at the end of DEST;
- in other words, return DEST + strlen (SOURCE). */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+/* Copy SRC to DEST, returning the address of the terminating '\0' in DEST. */
char *
char *
-stpcpy (dest, s
ource
)
+stpcpy (dest, s
rc
)
char *dest;
char *dest;
- c
har *source
;
+ c
onst char *src
;
{
{
- while ((*dest++ = *s
ource
++) != '\0')
+ while ((*dest++ = *s
rc
++) != '\0')
/* Do nothing. */ ;
return dest - 1;
}
/* Do nothing. */ ;
return dest - 1;
}