[libc-commits] [libc] [libc] Add a placeholder for swprintf function (PR #200895)

Jeff Bailey via libc-commits libc-commits at lists.llvm.org
Mon Jun 1 12:05:02 PDT 2026


================
@@ -0,0 +1,35 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// This file contains the implementation of the swprintf function.
+///
+//===----------------------------------------------------------------------===//
+
+#include "src/wchar/swprintf.h"
+
+#include "hdr/types/size_t.h"
+#include "hdr/types/wchar_t.h"
+#include "src/__support/common.h"
+#include "src/__support/macros/config.h"
+
+#include <stdarg.h>
+
+namespace LIBC_NAMESPACE_DECL {
+
+LLVM_LIBC_FUNCTION(int, swprintf,
+                   (wchar_t *__restrict buffer, size_t bufsz,
+                    const wchar_t *__restrict format, ...)) {
+  (void)buffer;
----------------
kaladron wrote:

That would make it visible in the public headers, wouldn't it?

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


More information about the libc-commits mailing list