diff options
Diffstat (limited to 'kernel/libc/string/strcpy.c')
-rw-r--r-- | kernel/libc/string/strcpy.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/libc/string/strcpy.c b/kernel/libc/string/strcpy.c new file mode 100644 index 0000000..fa1e336 --- /dev/null +++ b/kernel/libc/string/strcpy.c @@ -0,0 +1,8 @@ +#include <string.h> + +char *strcpy(char *d, const char *s) { + char *s1 = d; + for (; (*d++ = *s++);) + ; + return s1; +} |