summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/lib/strcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/dietlibc/lib/strcpy.c')
-rw-r--r--mdk-stage1/dietlibc/lib/strcpy.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/lib/strcpy.c b/mdk-stage1/dietlibc/lib/strcpy.c
new file mode 100644
index 000000000..49693c30d
--- /dev/null
+++ b/mdk-stage1/dietlibc/lib/strcpy.c
@@ -0,0 +1,15 @@
+#include "dietfeatures.h"
+
+char* strcpy(register char* s,register const char* t)
+{
+ char *dest=s;
+ for (;;) {
+ if (!(*s = *t)) return dest; ++s; ++t;
+#ifndef WANT_SMALL_STRING_ROUTINES
+ if (!(*s = *t)) return dest; ++s; ++t;
+ if (!(*s = *t)) return dest; ++s; ++t;
+ if (!(*s = *t)) return dest; ++s; ++t;
+#endif
+ }
+}
+