X-Git-Url: https://pd.if.org/git/?p=zos;a=blobdiff_plain;f=klib%2Fstrcpy.c;fp=klib%2Fstrcpy.c;h=75d9d85ccf0dec6d19f8da80f88e8b56d2ca6614;hp=0000000000000000000000000000000000000000;hb=5c0e560e481e2e97b793f7574e849a5882781df9;hpb=e57b692bd3a86ee40fd89416a06fd696f1ff3bf9 diff --git a/klib/strcpy.c b/klib/strcpy.c new file mode 100644 index 0000000..75d9d85 --- /dev/null +++ b/klib/strcpy.c @@ -0,0 +1,7 @@ +#include + +char *strcpy(char *s1, const char *s2) { + char *rc = s1; + while ( ( *s1++ = *s2++ ) ); + return rc; +}