aboutsummaryrefslogtreecommitdiff
path: root/src/kern/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kern/string.c')
-rw-r--r--src/kern/string.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/kern/string.c b/src/kern/string.c
new file mode 100644
index 0000000..4afa228
--- /dev/null
+++ b/src/kern/string.c
@@ -0,0 +1,9 @@
+#include "kern/string.h"
+
+void kstrcpy(char* into, const char* from)
+{
+ while(*from) {
+ *(into ++) = *(from ++);
+ }
+ *into = 0;
+}