From 4b178c0feb4c415be36be0e4c0def8c447ed42af Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Fri, 22 Nov 2019 22:17:54 +0100 Subject: Added the most awesome c lib --- src/mlibc/string/strcati.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/mlibc/string/strcati.c (limited to 'src/mlibc/string/strcati.c') diff --git a/src/mlibc/string/strcati.c b/src/mlibc/string/strcati.c new file mode 100644 index 0000000..d925eb7 --- /dev/null +++ b/src/mlibc/string/strcati.c @@ -0,0 +1,7 @@ +#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