[libc-commits] [libc] 330e8a7 - [libc][stdlib] Add calloc header (#94403)
via libc-commits
libc-commits at lists.llvm.org
Tue Jun 4 15:51:57 PDT 2024
Author: PiJoules
Date: 2024-06-04T15:51:53-07:00
New Revision: 330e8a7619579f23bb02d504852ee958f0afe54d
URL: https://github.com/llvm/llvm-project/commit/330e8a7619579f23bb02d504852ee958f0afe54d
DIFF: https://github.com/llvm/llvm-project/commit/330e8a7619579f23bb02d504852ee958f0afe54d.diff
LOG: [libc][stdlib] Add calloc header (#94403)
Added:
libc/src/stdlib/calloc.h
Modified:
Removed:
################################################################################
diff --git a/libc/src/stdlib/calloc.h b/libc/src/stdlib/calloc.h
new file mode 100644
index 0000000000000..bdb025b9d0d1c
--- /dev/null
+++ b/libc/src/stdlib/calloc.h
@@ -0,0 +1,20 @@
+//===-- Implementation header for calloc ------------------------*- 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
+//
+//===----------------------------------------------------------------------===//
+
+#include <stddef.h>
+
+#ifndef LLVM_LIBC_SRC_STDLIB_CALLOC_H
+#define LLVM_LIBC_SRC_STDLIB_CALLOC_H
+
+namespace LIBC_NAMESPACE {
+
+void *calloc(size_t num, size_t size);
+
+} // namespace LIBC_NAMESPACE
+
+#endif // LLVM_LIBC_SRC_STDLIB_CALLOC_H
More information about the libc-commits
mailing list