MCPcopy Create free account
hub / github.com/acl-dev/acl / mempool_calloc

Function mempool_calloc

lib_acl/src/stdlib/memory/acl_mempool.c:62–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62static void *mempool_calloc(const char *filename, int line, size_t nmemb, size_t size)
63{
64 void *ptr;
65
66 ptr = acl_allocator_membuf_alloc(filename, line, __var_allocator, nmemb * size);
67 memset(ptr, 0, nmemb * size);
68 return (ptr);
69}
70
71static void *mempool_realloc(const char *filename, int line, void *ptr, size_t size)
72{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…