MCPcopy Create free account
hub / github.com/coreboot/coreboot / xrealloc

Function xrealloc

util/kconfig/util.c:99–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void *xrealloc(void *p, size_t size)
100{
101 p = realloc(p, size);
102 if (p)
103 return p;
104 fprintf(stderr, "Out of memory.\n");
105 exit(1);
106}
107
108char *xstrdup(const char *s)
109{

Callers 5

variable_addFunction · 0.85
__expand_stringFunction · 0.85
dialog_inputboxFunction · 0.85
add_byteFunction · 0.85
str_appendFunction · 0.85

Calls 3

reallocFunction · 0.85
fprintfFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected