xref: /third_party/musl/porting/linux/user/src/malloc/calloc.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/porting/linux/user/src/malloc/
1570af302Sopenharmony_ci#ifndef HOOK_ENABLE
2570af302Sopenharmony_ci#include <stdlib.h>
3570af302Sopenharmony_ci#ifdef USE_JEMALLOC
4570af302Sopenharmony_ciextern void* je_calloc(void* p, size_t newsize);
5570af302Sopenharmony_ci#endif
6570af302Sopenharmony_civoid *calloc(size_t m, size_t n)
7570af302Sopenharmony_ci{
8570af302Sopenharmony_ci#ifdef USE_JEMALLOC
9570af302Sopenharmony_ci	return je_calloc(m, n);
10570af302Sopenharmony_ci#endif
11570af302Sopenharmony_ci    return __libc_calloc(m, n);
12570af302Sopenharmony_ci}
13570af302Sopenharmony_ci#endif

Indexes created Thu Nov 07 10:32:03 CST 2024