Skip to content

Commit 330e8a7

Browse files
authored
[libc][stdlib] Add calloc header (#94403)
1 parent 8896f21 commit 330e8a7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

libc/src/stdlib/calloc.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//===-- Implementation header for calloc ------------------------*- C++ -*-===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#include <stddef.h>
10+
11+
#ifndef LLVM_LIBC_SRC_STDLIB_CALLOC_H
12+
#define LLVM_LIBC_SRC_STDLIB_CALLOC_H
13+
14+
namespace LIBC_NAMESPACE {
15+
16+
void *calloc(size_t num, size_t size);
17+
18+
} // namespace LIBC_NAMESPACE
19+
20+
#endif // LLVM_LIBC_SRC_STDLIB_CALLOC_H

0 commit comments

Comments
 (0)