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

Function reallocfn

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

Source from the content-addressed store, hash-verified

48}
49
50static void *reallocfn(void *ptr, size_t size)
51{
52 realloc_count++;
53 if (!ptr)
54 alloc_count++;
55
56 return *find_ptr(ptr) = realloc(ptr, size);
57}
58
59static void freefn(void *ptr)
60{

Callers

nothing calls this directly

Calls 1

find_ptrFunction · 0.85

Tested by

no test coverage detected