From 4ee8dd7f2b14efacf7d9242c85881dc381413e4a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 11 Mar 2002 17:46:50 +0000 Subject: Add strcat function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1847 91177308-0d34-0410-b5e6-96231b3b80d8 --- runtime/GCCLibraries/libc/string.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'runtime/GCCLibraries/libc') diff --git a/runtime/GCCLibraries/libc/string.c b/runtime/GCCLibraries/libc/string.c index f697dd4..ac00ed4 100644 --- a/runtime/GCCLibraries/libc/string.c +++ b/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, -- cgit v1.1