1 //===-------------------- Implementation of strcat -----------------------===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #include "src/string/strcat.h" 10 11 #include "src/__support/common.h" 12 #include "src/string/strcpy.h" 13 14 namespace __llvm_libc { 15 LLVM_LIBC_ENTRYPOINT(strcat)16char *LLVM_LIBC_ENTRYPOINT(strcat)(char *dest, const char *src) { 17 // We do not yet have an implementaion of strlen in so we will use strlen 18 // from another libc. 19 __llvm_libc::strcpy(dest + ::strlen(dest), src); 20 return dest; 21 } 22 23 } // namespace __llvm_libc 24