MCPcopy Create free account
hub / github.com/ElementsProject/lightning / htable_default_alloc

Function htable_default_alloc

ccan/ccan/htable/htable.c:17–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15#define NO_PERFECT_BIT (sizeof(uintptr_t) * CHAR_BIT - 1)
16
17static void *htable_default_alloc(struct htable *ht, size_t len)
18{
19 return calloc(len, 1);
20}
21
22static void htable_default_free(struct htable *ht, void *p)
23{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected