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

Function test_realloc

ccan/ccan/rbuf/test/run.c:11–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9
10static bool test_realloc_fail;
11static void *test_realloc(struct membuf *mb, void *buf, size_t n)
12{
13 if (test_realloc_fail)
14 return NULL;
15 return realloc(buf, n);
16}
17
18int main(void)
19{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected