[libc-commits] [libc] [libc] Implement vasprintf and asprintf (PR #98824)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Mon Jul 29 13:45:53 PDT 2024


================
@@ -0,0 +1,21 @@
+//===-- Implementation header of vasprintf ----------------------*- C++ -*-===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_SRC_STDIO_VASPRINTF_H
+#define LLVM_LIBC_SRC_STDIO_VASPRINTF_H
+
+#include <stdarg.h>
+#include <stdio.h>
----------------
michaelrj-google wrote:

you don't need to include `stdio.h` here.

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


More information about the libc-commits mailing list