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

Function opt_set_alloc

ccan/ccan/opt/opt.c:303–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303void opt_set_alloc(void *(*allocfn)(size_t size),
304 void *(*reallocfn)(void *ptr, size_t size),
305 void (*freefn)(void *ptr))
306{
307 opt_alloc.alloc = allocfn;
308 opt_alloc.realloc = reallocfn;
309 opt_alloc.free = freefn;
310}

Callers 5

mainFunction · 0.85
setup_option_allocatorsFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68