Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
303
void 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
main
Function · 0.85
setup_option_allocators
Function · 0.85
main
Function · 0.85
main
Function · 0.85
main
Function · 0.85
Calls
no outgoing calls
Tested by
1
main
Function · 0.68