aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/stpcpy.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-03-28 22:20:26 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-03-28 22:20:26 -0700
commit667f827e31d7b2a0ce1e5b352acdf12848f53a97 (patch)
tree339654d41bcfedfa52a187b9da689c70b46944bd /com32/lib/stpcpy.c
parent9eddd22a7b53b1d02fbae0d987df8af122924248 (diff)
parent17c38d3c4b9e5c24d41c5bd582be268a207df086 (diff)
downloadsyslinux.git-667f827e31d7b2a0ce1e5b352acdf12848f53a97.tar.gz
syslinux.git-667f827e31d7b2a0ce1e5b352acdf12848f53a97.tar.xz
syslinux.git-667f827e31d7b2a0ce1e5b352acdf12848f53a97.zip
Merge commit 'origin/gpxe-support' into gpxe-added
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;
+}