diff options
Diffstat (limited to 'kernel/lib/strcat.c')
-rw-r--r-- | kernel/lib/strcat.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/lib/strcat.c b/kernel/lib/strcat.c new file mode 100644 index 0000000..fcfa463 --- /dev/null +++ b/kernel/lib/strcat.c @@ -0,0 +1,7 @@ +#include <lib.h> + +char *strcat(char *restrict dest, const char *restrict src) +{ + strcpy(dest + strlen(dest), src); + return dest; +} |