diff options
Diffstat (limited to 'llvm/runtime/GCCLibraries/libc/string.c')
-rw-r--r-- | llvm/runtime/GCCLibraries/libc/string.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/runtime/GCCLibraries/libc/string.c b/llvm/runtime/GCCLibraries/libc/string.c index f697dd4d19a..ac00ed40c33 100644 --- a/llvm/runtime/GCCLibraries/libc/string.c +++ b/llvm/runtime/GCCLibraries/libc/string.c @@ -26,6 +26,11 @@ char *strcpy(char *s1, const char *s2) { return s1; } +char *strcat(char *s1, const char *s2) { + strcpy(s1+strlen(s1), s2); + return s1; +} + /* Compare S1 and S2, returning less than, equal to or greater than zero if S1 is lexicographically less than, |