MCPcopy 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
90void *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
99void *xrealloc(void *p, size_t size)
100{

Callers 5

expr_alloc_symbolFunction · 0.85
expr_alloc_oneFunction · 0.85
expr_alloc_twoFunction · 0.85
expr_alloc_compFunction · 0.85
set_subtitleFunction · 0.85

Calls 3

fprintfFunction · 0.85
exitFunction · 0.85
callocFunction · 0.50

Tested by

no test coverage detected