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

Function opt_set_alloc

ccan/ccan/opt/opt.c:306–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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