summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/linux/intl/stpcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/linux/intl/stpcpy.c')
-rw-r--r--newlib/libc/sys/linux/intl/stpcpy.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/newlib/libc/sys/linux/intl/stpcpy.c b/newlib/libc/sys/linux/intl/stpcpy.c
new file mode 100644
index 000000000..0af6c67c8
--- /dev/null
+++ b/newlib/libc/sys/linux/intl/stpcpy.c
@@ -0,0 +1,10 @@
+char *
+__stpcpy (dest, src)
+ char *dest;
+ const char *src;
+{
+ while ((*dest++ = *src++) != '\0')
+ /* Do nothing. */ ;
+ return dest - 1;
+}
+