summaryrefslogtreecommitdiffstats
path: root/contrib/syslinux-4.02/com32/lib/stpcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/syslinux-4.02/com32/lib/stpcpy.c')
-rw-r--r--contrib/syslinux-4.02/com32/lib/stpcpy.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/contrib/syslinux-4.02/com32/lib/stpcpy.c b/contrib/syslinux-4.02/com32/lib/stpcpy.c
new file mode 100644
index 0000000..23e20af
--- /dev/null
+++ b/contrib/syslinux-4.02/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;
+}