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

Function tal_reallocfn

devtools/bolt12-cli.c:31–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31static void *tal_reallocfn(void *ptr, size_t size)
32{
33 if (!ptr)
34 return opt_allocfn(size);
35 tal_resize_(&ptr, 1, size, false);
36 return ptr;
37}
38
39static void tal_freefn(void *ptr)
40{

Callers

nothing calls this directly

Calls 2

tal_resize_Function · 0.85
opt_allocfnFunction · 0.70

Tested by

no test coverage detected