diff options
Diffstat (limited to 'lib/string/strcat.c')
| -rw-r--r-- | lib/string/strcat.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/string/strcat.c b/lib/string/strcat.c new file mode 100644 index 0000000..723c2ff --- /dev/null +++ b/lib/string/strcat.c @@ -0,0 +1,10 @@ +/* SPDX-License-Identifier: MIT */ +/* Derived from musl libc (Copyright © 2005-2020 Rich Felker, et al.) */ + +#include <string.h> + +char *strcat(char *restrict dest, const char *restrict src) +{ + strcpy(dest + strlen(dest), src); + return dest; +} |
