Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/lightning
/ allocfn
Function
allocfn
ccan/ccan/opt/test/run-set_alloc.c:44–48 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
42
}
43
44
static void *allocfn(size_t size)
45
{
46
alloc_count++;
47
return *find_ptr(NULL) = malloc(size);
48
}
49
50
static void *reallocfn(void *ptr, size_t size)
51
{
Callers
1
allocate
Function · 0.85
Calls
1
find_ptr
Function · 0.85
Tested by
no test coverage detected