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

Function allocfn

ccan/ccan/opt/test/run-set_alloc.c:44–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44static void *allocfn(size_t size)
45{
46 alloc_count++;
47 return *find_ptr(NULL) = malloc(size);
48}
49
50static void *reallocfn(void *ptr, size_t size)
51{

Callers 1

allocateFunction · 0.85

Calls 1

find_ptrFunction · 0.85

Tested by

no test coverage detected