]> pd.if.org Git - zos/blobdiff - klib/strcpy.c
klib and makefile
[zos] / klib / strcpy.c
diff --git a/klib/strcpy.c b/klib/strcpy.c
new file mode 100644 (file)
index 0000000..75d9d85
--- /dev/null
@@ -0,0 +1,7 @@
+#include <string.h>
+
+char *strcpy(char *s1, const char *s2) {
+       char *rc = s1;
+       while ( ( *s1++ = *s2++ ) );
+       return rc;
+}