[libc-commits] [libc] [libc] wcsncpy implementation (PR #142237)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Fri May 30 16:29:14 PDT 2025


================
@@ -104,3 +104,15 @@ add_entrypoint_object(
     libc.hdr.wchar_macros
     libc.src.__support.wctype_utils
 )
+
+add_entrypoint_object(
+  wcsncpy
+  SRCS
+    wcsncpy.cpp
+  HDRS
+    wcsncpy.h
+  DEPENDS
+    libc.hdr.types.size_t
+    libc.hdr.wchar_macros
+    libc.src.__support.wctype_utils
----------------
michaelrj-google wrote:

this depends on string_utils and inline memcpy, but not wctype_utils.

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


More information about the libc-commits mailing list