diff options
Diffstat (limited to 'src/kernel/lib/string/strcati.c')
-rw-r--r-- | src/kernel/lib/string/strcati.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/kernel/lib/string/strcati.c b/src/kernel/lib/string/strcati.c new file mode 100644 index 0000000..9ee3a43 --- /dev/null +++ b/src/kernel/lib/string/strcati.c @@ -0,0 +1,8 @@ +#include <kernel/lib/string.h> + +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 |