[libc-commits] [libc] [libc] Independent strcat/strncat/stpcpy (PR #142643)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Thu Jun 5 11:15:49 PDT 2025


================
@@ -18,7 +17,7 @@ namespace LIBC_NAMESPACE_DECL {
 LLVM_LIBC_FUNCTION(char *, stpcpy,
                    (char *__restrict dest, const char *__restrict src)) {
   size_t size = internal::string_length(src) + 1;
-  inline_memcpy(dest, src, size);
+  __builtin_memcpy(dest, src, size);
----------------
michaelrj-google wrote:

I'd be interested in making memcpy specialization template controlled, though to keep the includes for different architectures separate we would probably still need some amount of macro control. I think that's probably a topic for a separate PR though.

https://github.com/llvm/llvm-project/pull/142643


More information about the libc-commits mailing list