Add strcat function
authorChris Lattner <sabre@nondot.org>
Mon, 11 Mar 2002 17:46:50 +0000 (17:46 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 11 Mar 2002 17:46:50 +0000 (17:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1847 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/GCCLibraries/libc/string.c

index f697dd4d19ade2010546a6ac02a3bef08c796611..ac00ed40c33a24e8db1350ba81a388f0f550b646 100644 (file)
@@ -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,