aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/stpcpy.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-03-31 05:29:08 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-03-31 05:29:08 -0700
commit53e2478e75b40c8d4153e181b7e8a1024e2f3021 (patch)
tree2bb5ef5fc6e0e289284380a38fd479c9c3edfff3 /com32/lib/stpcpy.c
parent1a8b87b10c173c2be5f384d68cf75395483a3230 (diff)
parent667f827e31d7b2a0ce1e5b352acdf12848f53a97 (diff)
downloadsyslinux.git-53e2478e75b40c8d4153e181b7e8a1024e2f3021.tar.gz
syslinux.git-53e2478e75b40c8d4153e181b7e8a1024e2f3021.tar.xz
syslinux.git-53e2478e75b40c8d4153e181b7e8a1024e2f3021.zip
Merge commit 'origin/gpxe-added' into gpxe-addedsyslinux-3.70-pre8
Diffstat (limited to 'com32/lib/stpcpy.c')
-rw-r--r--com32/lib/stpcpy.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/com32/lib/stpcpy.c b/com32/lib/stpcpy.c
new file mode 100644
index 00000000..85fc49d3
--- /dev/null
+++ b/com32/lib/stpcpy.c
@@ -0,0 +1,23 @@
+/*
+ * stpcpy.c
+ *
+ * stpcpy()
+ */
+
+#include <string.h>
+
+char *stpcpy(char *dst, const char *src)
+{
+ char *q = dst;
+ const char *p = src;
+ char ch;
+
+ for (;;) {
+ *q = ch = *p++;
+ if ( !ch )
+ break;
+ q++;
+ }
+
+ return q;
+}