Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/coreboot/coreboot
/ xcalloc
Function
xcalloc
util/kconfig/util.c:90–97 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
88
}
89
90
void *xcalloc(size_t nmemb, size_t size)
91
{
92
void *p = calloc(nmemb, size);
93
if (p)
94
return p;
95
fprintf(stderr,
"Out of memory.\n"
);
96
exit(1);
97
}
98
99
void *xrealloc(void *p, size_t size)
100
{
Callers
5
expr_alloc_symbol
Function · 0.85
expr_alloc_one
Function · 0.85
expr_alloc_two
Function · 0.85
expr_alloc_comp
Function · 0.85
set_subtitle
Function · 0.85
Calls
3
fprintf
Function · 0.85
exit
Function · 0.85
calloc
Function · 0.50
Tested by
no test coverage detected