From d94b024b73aeca06de417e0fd3c502495312a8b2 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 7 Dec 2019 13:40:28 +0100 Subject: Added userspace libc and began userspace based shell --- src/userspace/mlibc/string/strcati.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/userspace/mlibc/string/strcati.c (limited to 'src/userspace/mlibc/string/strcati.c') diff --git a/src/userspace/mlibc/string/strcati.c b/src/userspace/mlibc/string/strcati.c new file mode 100644 index 0000000..8fdcc1a --- /dev/null +++ b/src/userspace/mlibc/string/strcati.c @@ -0,0 +1,8 @@ +#include + +void strcati(char *dest, const char *orig) +{ + size_t s_orig = strlen(orig); + strdisp(dest, (int) s_orig); + for (size_t i = 0; i < s_orig; i++) dest[i] = orig[i]; +} \ No newline at end of file -- cgit v1.2.3